lib/rubikon/has_arguments.rb in rubikon-0.5.1 vs lib/rubikon/has_arguments.rb in rubikon-0.5.2

- old
+ new

@@ -70,9 +70,10 @@ # # @param [Numeric, Symbol] The index of the argument to return. Numeric # indices can be used always while symbolic arguments are only # available for named arguments. # @return The argument with the specified index + # @see #args # @since 0.4.0 def [](arg) arg = @arg_names.index(arg) if arg.is_a? Symbol @args[arg] end