lib/import/shake_grammar/catcher.rb in tracksperanto-1.7.0 vs lib/import/shake_grammar/catcher.rb in tracksperanto-1.7.1
- old
+ new
@@ -33,11 +33,12 @@
end
private
def can_handle_meth?(m)
- @meths ||= self.class.public_instance_methods(false)
- @meths.include?(m)
+ # Ruby 1.9 - match on stringified methname
+ @meths ||= self.class.public_instance_methods(false).map{|mn| mn.to_s }
+ @meths.include?(m.to_s)
end
def exec_funcall(methname, args)
ruby_args = args.map {|a| unwrap_atom(a) }
send(methname, *ruby_args)
\ No newline at end of file