Class: DataFabric::StringProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/data_fabric/connection_proxy.rb

Instance Method Summary collapse

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_sObject



16
17
18
# File 'lib/data_fabric/connection_proxy.rb', line 16

def to_s
  @proc.call
end