class Flammarion::Writeable::DeferredValue
A way to retrieve the current value of a user interacterive component. @see Writeable#input
@see Writeable#checkbox
@see Writeable#dropdown
Public Class Methods
new()
click to toggle source
@api private
Calls superclass method
# File lib/flammarion/writeable.rb, line 14 def initialize super @value end
Public Instance Methods
__getobj__()
click to toggle source
@api private
# File lib/flammarion/writeable.rb, line 29 def __getobj__ @value end
__setobj__(value)
click to toggle source
@api private
# File lib/flammarion/writeable.rb, line 19 def __setobj__(value) @value = value end
checked?()
click to toggle source
@return [Boolean] true if the component is checked and false if it is
not. Undefined if the component is not a checkbox.
# File lib/flammarion/writeable.rb, line 40 def checked? return @value end
inspect()
click to toggle source
@return [String] a string representing the remote component’s value
# File lib/flammarion/writeable.rb, line 34 def inspect "#R#{@value.inspect}" end
value()
click to toggle source
@return [Object] the current value of the remote component
# File lib/flammarion/writeable.rb, line 24 def value @value end