Class: Interview::Text
- Includes:
- HasHtmlOptions
- Defined in:
- lib/interview/controls/text.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#html_safe ⇒ Object
Returns the value of attribute html_safe.
-
#style ⇒ Object
Returns the value of attribute style.
-
#text ⇒ Object
Returns the value of attribute text.
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
#html_safe ⇒ Object
Returns the value of attribute html_safe.
6 7 8 |
# File 'lib/interview/controls/text.rb', line 6 def html_safe @html_safe end |
#style ⇒ Object
Returns the value of attribute style.
6 7 8 |
# File 'lib/interview/controls/text.rb', line 6 def style @style end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/interview/controls/text.rb', line 6 def text @text end |
Instance Method Details
#build(b) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/interview/controls/text.rb', line 8 def build(b) if @style b.section style: @style, html_class: @html_class, html_options: @html_options do build_text(b) yield if block_given? end else build_text(b) yield if block_given? end end |