Class: DataFabric::StringProxy
- Inherits:
-
Object
- Object
- DataFabric::StringProxy
- Defined in:
- lib/data_fabric/connection_proxy.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ StringProxy
constructor
A new instance of StringProxy.
- #to_s ⇒ Object
Constructor Details
#initialize(&block) ⇒ StringProxy
Returns a new instance of StringProxy.
13 14 15 |
# File 'lib/data_fabric/connection_proxy.rb', line 13 def initialize(&block) @proc = block end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/data_fabric/connection_proxy.rb', line 16 def to_s @proc.call end |