lib/sugar-high/alias.rb in sugar-high-0.1.8 vs lib/sugar-high/alias.rb in sugar-high-0.2.0
- old
+ new
@@ -25,10 +25,10 @@
name = options[:"_#{name}_"]
else
options = args[1]
end
- raise ArgumentError, "Name of method pattern to alias not specified. Please pass name as either first argument or as :before or :after option" if !name
+ raise ArgumentError, "Name of method pattern to alias not specified. Please pass name as either first argument or as :_before_ or :_after_ option" if !name
options.delete(:_after_)
options.delete(:_before_)
direction = options.delete(:_direction_)
\ No newline at end of file