Module: ExplicitReturn
- Defined in:
- lib/explicit-return.rb
Defined Under Namespace
Modules: MethodAddedObserver, MethodWrapper Classes: ExplicitResult
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.explicit(*args) ⇒ Object
12 13 14 |
# File 'lib/explicit-return.rb', line 12 def self.explicit(*args) ExplicitReturn::ExplicitResult.new(*args) end |
.included(context) ⇒ Object
3 4 5 6 |
# File 'lib/explicit-return.rb', line 3 def self.included(context) context.extend(self) context.extend(MethodAddedObserver) end |
Instance Method Details
#explicit(*args) ⇒ Object
8 9 10 |
# File 'lib/explicit-return.rb', line 8 def explicit(*args) ExplicitReturn::ExplicitResult.new(*args) end |