Class: RichERB::Panel
Instance Attribute Summary
Attributes inherited from CustomTag
#arity, #context, #doc, #parent
Instance Method Summary collapse
-
#initialize(options = {}, root = nil, &block) ⇒ Panel
constructor
A new instance of Panel.
Methods inherited from CustomTag
Constructor Details
#initialize(options = {}, root = nil, &block) ⇒ Panel
Returns a new instance of Panel.
3 4 5 6 7 8 9 10 |
# File 'lib/richerb/panel.rb', line 3 def initialize = {}, root = nil, &block @header = [:header] = {:class_ => 'rf-p'} super , 'div', root do |panel| panel.div({:class_ => 'rf-p-hdr'}, @header) unless @header.nil? yield self if block_given? end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RichERB::CustomTag