Class: ApiExplorer::BaseProxy
- Inherits:
-
Object
- Object
- ApiExplorer::BaseProxy
- Defined in:
- lib/api_explorer/dsl/base_proxy.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#obj ⇒ Object
Returns the value of attribute obj.
Instance Method Summary collapse
- #collect(&block) ⇒ Object
-
#initialize(obj = nil) ⇒ BaseProxy
constructor
A new instance of BaseProxy.
Constructor Details
#initialize(obj = nil) ⇒ BaseProxy
Returns a new instance of BaseProxy.
5 6 7 |
# File 'lib/api_explorer/dsl/base_proxy.rb', line 5 def initialize(obj = nil) self.obj = obj end |
Instance Attribute Details
#obj ⇒ Object
Returns the value of attribute obj.
3 4 5 |
# File 'lib/api_explorer/dsl/base_proxy.rb', line 3 def obj @obj end |
Instance Method Details
#collect(&block) ⇒ Object
9 10 11 |
# File 'lib/api_explorer/dsl/base_proxy.rb', line 9 def collect(&block) instance_eval(&block) end |