Module: Conjuration::Attributes
- Included in:
- DebugManager, GameObject, Scene
- Defined in:
- lib/conjuration/concerns/attributes.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
27 28 29 |
# File 'lib/conjuration/concerns/attributes.rb', line 27 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize ⇒ Object
31 32 33 34 35 |
# File 'lib/conjuration/concerns/attributes.rb', line 31 def initialize(...) super() @attributes = {} end |
#inspect ⇒ Object
37 38 39 |
# File 'lib/conjuration/concerns/attributes.rb', line 37 def inspect "<#{self.class} #{@attributes.map { |attribute_name, value| "#{attribute_name}: #{value.inspect}" }.join(", ")}>" end |