Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/pegarus/compatibility.rb

Instance Method Summary collapse

Instance Method Details

#thunk_method(name, value) ⇒ Object



3
4
5
# File 'lib/pegarus/compatibility.rb', line 3

def thunk_method(name, value)
  define_method(name) { return value }
end