Class: Proc::Composition::Deferable
- Inherits:
-
Object
- Object
- Proc::Composition::Deferable
- Defined in:
- lib/proc/composition/deferable.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
writeonly
Sets the attribute arguments.
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
Instance Method Summary collapse
-
#initialize(proc) ⇒ Deferable
constructor
A new instance of Deferable.
- #serialize ⇒ Object
Constructor Details
#initialize(proc) ⇒ Deferable
Returns a new instance of Deferable.
9 10 11 12 |
# File 'lib/proc/composition/deferable.rb', line 9 def initialize(proc) @proc = proc @arguments = {} end |
Instance Attribute Details
#arguments=(value) ⇒ Object (writeonly)
Sets the attribute arguments
7 8 9 |
# File 'lib/proc/composition/deferable.rb', line 7 def arguments=(value) @arguments = value end |
#proc ⇒ Object (readonly)
Returns the value of attribute proc.
6 7 8 |
# File 'lib/proc/composition/deferable.rb', line 6 def proc @proc end |
Instance Method Details
#serialize ⇒ Object
14 15 16 |
# File 'lib/proc/composition/deferable.rb', line 14 def serialize [@proc, @arguments] end |