search for: fdsfs

Displaying 1 result from an estimated 1 matches for "fdsfs".

Did you mean: fdsf
2006 Jul 17
3
Extending Ruby classes in Rails
..."bar" end def bar "baz" end end But it does not get picked up: white:~/svn/tagticks morten$ script/console Loading development environment. >> String.foo NoMethodError: undefined method `foo'' for String:Class from (irb):1 >> "fdsfs".foo NoMethodError: undefined method `foo'' for "fdsfs":String from (irb):2 >> "fdsfs".bar NoMethodError: undefined method `bar'' for "fdsfs":String from (irb):3 What''s the appropriate way to extend a ruby class...