Class: Reac::Proc

Inherits:
Reac
  • Object
show all
Defined in:
lib/reac.rb

Instance Attribute Summary collapse

Attributes inherited from Reac

#last_update

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



72
73
74
# File 'lib/reac.rb', line 72

def data
  @data
end

#procObject (readonly)

Returns the value of attribute proc.



73
74
75
# File 'lib/reac.rb', line 73

def proc
  @proc
end