Class: Taksi::Component
- Inherits:
-
Module
- Object
- Module
- Taksi::Component
- Defined in:
- lib/taksi/component.rb
Overview
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Instance Method Summary collapse
- #included(klass) ⇒ Object
-
#initialize(identifier) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(identifier) ⇒ Component
Returns a new instance of Component.
19 20 21 22 |
# File 'lib/taksi/component.rb', line 19 def initialize(identifier) @identifier = identifier super() end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
17 18 19 |
# File 'lib/taksi/component.rb', line 17 def identifier @identifier end |
Instance Method Details
#included(klass) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/taksi/component.rb', line 24 def included(klass) klass.extend(ClassMethods) klass.include(InstanceMethods) klass.definition = self end |