Class: Flammarion::Writeable::DeferredValue

Inherits:
Delegator
  • Object
show all
Defined in:
lib/flammarion/writeable.rb

Instance Method Summary collapse

Constructor Details

#initializeDeferredValue

Returns a new instance of DeferredValue.



5
6
7
# File 'lib/flammarion/writeable.rb', line 5

def initialize
  super @value
end

Instance Method Details

#__getobj__Object



16
17
18
# File 'lib/flammarion/writeable.rb', line 16

def __getobj__
  @value
end

#__setobj__(value) ⇒ Object



8
9
10
# File 'lib/flammarion/writeable.rb', line 8

def __setobj__(value)
  @value = value
end

#checked?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/flammarion/writeable.rb', line 24

def checked?
  return @value
end

#inspectObject



20
21
22
# File 'lib/flammarion/writeable.rb', line 20

def inspect
  "#R#{@value.inspect}"
end

#valueObject



12
13
14
# File 'lib/flammarion/writeable.rb', line 12

def value
  @value
end