lib/irb_hacks.rb in irb_hacks-0.2.3 vs lib/irb_hacks.rb in irb_hacks-0.2.4
- old
+ new
@@ -22,10 +22,10 @@
# snippet>> myfunc
# irb> a
# Reading name...
# => "John Smith"
def self.break(value = nil)
- raise BreakException, [value]
+ raise BreakException.new(:value => value)
end
# Access configuration object. See IrbHacks::Config.
#
# IrbHacks.conf