Module: Arbre::Rails::Rendering

Defined in:
lib/arbre/rails/rendering.rb

Instance Method Summary collapse

Instance Method Details

#render(*args) ⇒ Object


5
6
7
8
9
10
11
12
13
# File 'lib/arbre/rails/rendering.rb', line 5

def render(*args)
  rendered = helpers.render(*args)
  case rendered
  when Arbre::Context
    current_arbre_element.add_child rendered
  else
    text_node rendered
  end
end