Class: Jeeves::DefineImportedMethod
- Inherits:
-
Object
- Object
- Jeeves::DefineImportedMethod
- Defined in:
- lib/jeeves/define_imported_method.rb
Instance Method Summary collapse
Instance Method Details
#call(target, internal_name, options) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/jeeves/define_imported_method.rb', line 3 def call(target, internal_name, ) @target = target @internal_name = internal_name @scope = .fetch(:from) @external_name = .fetch(:name) if [:lazy] == true define_lazy elsif [:lazy] == false define_non_lazy else define_smart end define_on_instance end |