Sha256: 79699a0a25e6e0e9da0749a2c97d3d5de549cddaeb0367558a18ba0c5b9c19c9
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
module NotRelational class LazyLoadingText attr_reader :is_dirty attr_reader :has_loaded def initialize(get_clob_proc) @get_clob_proc=get_clob_proc @has_loaded=false @is_dirty=false end def value=(v) @is_dirty=true @has_loaded=true @value=v end def value if !@did_load @value= @get_clob_proc.call @has_loaded=true end return @value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudwow-not_relational-0.1.0 | lib/not_relational/lazy_loading_text.rb |