Class: Decidim::ContentRenderers::BaseRenderer::ReplacementContext
- Inherits:
-
Struct
- Object
- Struct
- Decidim::ContentRenderers::BaseRenderer::ReplacementContext
- Defined in:
- lib/decidim/content_renderers/base_renderer.rb
Instance Attribute Summary collapse
-
#ancestor_names ⇒ Object
Returns the value of attribute ancestor_names.
-
#attribute_name ⇒ Object
Returns the value of attribute attribute_name.
-
#node_name ⇒ Object
Returns the value of attribute node_name.
-
#placement ⇒ Object
Returns the value of attribute placement.
Instance Method Summary collapse
Instance Attribute Details
#ancestor_names ⇒ Object
Returns the value of attribute ancestor_names
15 16 17 |
# File 'lib/decidim/content_renderers/base_renderer.rb', line 15 def ancestor_names @ancestor_names end |
#attribute_name ⇒ Object
Returns the value of attribute attribute_name
15 16 17 |
# File 'lib/decidim/content_renderers/base_renderer.rb', line 15 def attribute_name @attribute_name end |
#node_name ⇒ Object
Returns the value of attribute node_name
15 16 17 |
# File 'lib/decidim/content_renderers/base_renderer.rb', line 15 def node_name @node_name end |
#placement ⇒ Object
Returns the value of attribute placement
15 16 17 |
# File 'lib/decidim/content_renderers/base_renderer.rb', line 15 def placement @placement end |
Instance Method Details
#attribute? ⇒ Boolean
20 21 22 |
# File 'lib/decidim/content_renderers/base_renderer.rb', line 20 def attribute? placement == :attribute end |
#text? ⇒ Boolean
16 17 18 |
# File 'lib/decidim/content_renderers/base_renderer.rb', line 16 def text? placement == :text end |