Class: Reac::Proc
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
Attributes inherited from Reac
Instance Method Summary collapse
-
#initialize(proc) ⇒ Proc
constructor
A new instance of Proc.
Methods inherited from Reac
#method_missing, #value, value
Constructor Details
#initialize(proc) ⇒ Proc
Returns a new instance of Proc.
69 70 71 |
# File 'lib/reac.rb', line 69 def initialize(proc) @proc = proc end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Reac
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
72 73 74 |
# File 'lib/reac.rb', line 72 def data @data end |
#proc ⇒ Object (readonly)
Returns the value of attribute proc.
73 74 75 |
# File 'lib/reac.rb', line 73 def proc @proc end |