lib/spnet/core/link.rb in spnet-0.1.7 vs lib/spnet/core/link.rb in spnet-0.1.8
- old
+ new
@@ -17,10 +17,10 @@
# A new instance of Link. Link is not active by default (does not set
# from.link and to.link to self).
# @param [Hash] args Hashed arguments for initialization. See Link::ARG_SPECS
# for details of which keys are required.
def initialize args = {}
- hash_make Link::ARG_SPECS, args
+ hash_make args, Link::ARG_SPECS
raise ArgumentError, "from port class #{@from.class} is not a #{@to.matching_class}" unless @from.is_a?(@to.matching_class)
raise ArgumentError, "to port class #{@to.class} is not a #{@from.matching_class}" unless @to.is_a?(@from.matching_class)
end