Class: Interview::Section
- Includes:
- HasHtmlOptions
- Defined in:
- lib/interview/controls/section.rb
Instance Attribute Summary collapse
-
#style ⇒ Object
Returns the value of attribute style.
Attributes included from HasHtmlOptions
Attributes inherited from Control
Instance Method Summary collapse
Methods included from HasHtmlOptions
Methods inherited from Control
#ancestors, #build_child, #build_with_params, #find_attribute, #find_attribute!, #initialize, #set_attributes, #set_defaults
Instance Attribute Details
#style ⇒ Object
Returns the value of attribute style.
6 7 8 |
# File 'lib/interview/controls/section.rb', line 6 def style @style end |
Instance Method Details
#build(b) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/interview/controls/section.rb', line 8 def build(b) style = @style || :div b.html.tag! style.to_sym, do yield if block_given? end end |