Module: Taksi::Component::ClassMethods
- Defined in:
- lib/taksi/component.rb
Instance Attribute Summary collapse
-
#content_builder ⇒ Object
readonly
Returns the value of attribute content_builder.
Instance Method Summary collapse
Instance Attribute Details
#content_builder ⇒ Object (readonly)
Returns the value of attribute content_builder.
32 33 34 |
# File 'lib/taksi/component.rb', line 32 def content_builder @content_builder end |
Instance Method Details
#content(&block) ⇒ Object
42 43 44 45 |
# File 'lib/taksi/component.rb', line 42 def content(&block) @content_builder = block self end |
#definition=(component_definition) ⇒ Object
34 35 36 |
# File 'lib/taksi/component.rb', line 34 def definition=(component_definition) @component_definition = component_definition end |
#identifier ⇒ Object
38 39 40 |
# File 'lib/taksi/component.rb', line 38 def identifier @component_definition.identifier end |