Class: Gruffy::Group
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(folder_name, layers) ⇒ Group
constructor
A new instance of Group.
- #send_updates(value) ⇒ Object
Constructor Details
#initialize(folder_name, layers) ⇒ Group
Returns a new instance of Group.
114 115 116 117 118 119 |
# File 'lib/gruffy/scene.rb', line 114 def initialize(folder_name, layers) @name = folder_name layers.each do |layer| layer.observe self end end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
112 113 114 |
# File 'lib/gruffy/scene.rb', line 112 def name @name end |
Instance Method Details
#send_updates(value) ⇒ Object
121 122 123 124 |
# File 'lib/gruffy/scene.rb', line 121 def send_updates(value) changed notify_observers value end |