summaryrefslogtreecommitdiffstats
path: root/lib/edoors/link.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-26 16:25:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-26 16:25:35 +0200
commit842cf74d34c9fe95c43449c2d662cd0fc19b25f9 (patch)
treea03852e649e48c0cca8c72f993608c0edad7b916 /lib/edoors/link.rb
parent85765f11fe12912dffa7873c2f291e28221d901f (diff)
downloadedoors-ruby-842cf74d34c9fe95c43449c2d662cd0fc19b25f9.zip
edoors-ruby-842cf74d34c9fe95c43449c2d662cd0fc19b25f9.tar.gz
Particle,Link: use @raise yard tag
Diffstat (limited to 'lib/edoors/link.rb')
-rw-r--r--lib/edoors/link.rb2
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']