Class: Decidim::ContentRenderers::BaseRenderer::ReplacementContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/decidim/content_renderers/base_renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ancestor_namesObject

Returns the value of attribute ancestor_names

Returns:

  • (Object)

    the current value of ancestor_names



15
16
17
# File 'lib/decidim/content_renderers/base_renderer.rb', line 15

def ancestor_names
  @ancestor_names
end

#attribute_nameObject

Returns the value of attribute attribute_name

Returns:

  • (Object)

    the current value of attribute_name



15
16
17
# File 'lib/decidim/content_renderers/base_renderer.rb', line 15

def attribute_name
  @attribute_name
end

#node_nameObject

Returns the value of attribute node_name

Returns:

  • (Object)

    the current value of node_name



15
16
17
# File 'lib/decidim/content_renderers/base_renderer.rb', line 15

def node_name
  @node_name
end

#placementObject

Returns the value of attribute placement

Returns:

  • (Object)

    the current value of placement



15
16
17
# File 'lib/decidim/content_renderers/base_renderer.rb', line 15

def placement
  @placement
end

Instance Method Details

#attribute?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/decidim/content_renderers/base_renderer.rb', line 20

def attribute?
  placement == :attribute
end

#text?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/decidim/content_renderers/base_renderer.rb', line 16

def text?
  placement == :text
end