Class: Rxhp::Fragment
Overview
Fake element that only renders its’ children.
Can be used like an array, or if you just need something that acts like an element - this is used internally as the root of all render trees.
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Element
#children?, #fill_options, #initialize, #render_children, #render_string, #valid?, #validate!
Methods included from Scope
current, define_element, #fragment, with_parent
Constructor Details
This class inherits a constructor from Rxhp::Element
Instance Method Details
#render(options = {}) ⇒ Object
10 11 12 |
# File 'lib/rxhp/fragment.rb', line 10 def render = {} self.render_children() end |