Class: Rxhp::Fragment

Inherits:
Element show all
Defined in:
lib/rxhp/fragment.rb

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

#attributes, #children

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 options = {}
  self.render_children(options)
end