lib/asynchronic/data_store/lazy_value.rb in asynchronic-0.2.0 vs lib/asynchronic/data_store/lazy_value.rb in asynchronic-0.2.1

- old
+ new

@@ -1,7 +1,5 @@ -require_relative '../transparent_proxy' - module Asynchronic module DataStore class LazyValue < TransparentProxy def initialize(data_store, key) @@ -19,9 +17,13 @@ "#<#{proxy_class} @data_store_class=#{@data_store_class} @data_store_connection=#{@data_store_connection} @key=#{@key}>" end def data_store @data_store_class.connect @data_store_connection + end + + def to_value + __getobj__ end private def __getobj__ \ No newline at end of file