Displaying 1 result from an estimated 1 matches for "module_method".
2008 Mar 31
0
log_buddy released - your helpful dev and debug buddy
...and its result - note that you *must* use the bracket block form
- do...end is not supported.
Examples
=======
require ''lib/log_buddy''
LogBuddy.init
a = "foo"
@a = "my var"
@@bar = "class var!"
def bark
"woof!"
end
module Foo;
def self.module_method
"hi!!"
end
end
d { a } # logs "a = ''foo''"
d { @a } # logs "@a = ''my var''"
d { @@bar } # logs "@@bar = ''class var!''"
d { bark } # logs "ba...