diff options
Diffstat (limited to 'lib/edoors/link.rb')
-rw-r--r-- | lib/edoors/link.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/edoors/link.rb b/lib/edoors/link.rb index 8676979..ede2cd4 100644 --- a/lib/edoors/link.rb +++ b/lib/edoors/link.rb @@ -64,6 +64,8 @@ module Edoors # # @param [Hash] o belongs to JSON parser # + # @raise Edoors::Exception if the json kls attribute is wrong + # def self.json_create o raise Edoors::Exception.new "JSON #{o['kls']} != #{self.name}" if o['kls'] != self.name self.new o['src'], o['dsts'], o['keys'], o['value'] |