Class: Proc

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-loco/proc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#observed_propertiesObject (readonly)

Returns the value of attribute observed_properties.



4
5
6
# File 'lib/motion-loco/proc.rb', line 4

def observed_properties
  @observed_properties
end

Instance Method Details

#observes(*properties) ⇒ Object



9
10
11
12
13
14
# File 'lib/motion-loco/proc.rb', line 9

def observes(*properties)
  properties.each {|property|
    self.observed_properties << property
  }
  self
end

#property(*properties) ⇒ Object



16
17
18
19
20
21
# File 'lib/motion-loco/proc.rb', line 16

def property(*properties)
  properties.each {|property|
    self.observed_properties << property
  }
  self
end