Class: UiBibz::Builders::HtmlOptionsBuilder
- Inherits:
-
Object
- Object
- UiBibz::Builders::HtmlOptionsBuilder
- Defined in:
- lib/ui_bibz/builders/html_options_builder.rb
Overview
Class to build html classes
Instance Attribute Summary collapse
-
#html_options ⇒ Object
Returns the value of attribute html_options.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(html_options, options) ⇒ HtmlOptionsBuilder
constructor
A new instance of HtmlOptionsBuilder.
- #initialize_component_html_classes(component_html_classes) ⇒ Object
- #initialize_component_html_options(component_html_options) ⇒ Object
Constructor Details
#initialize(html_options, options) ⇒ HtmlOptionsBuilder
Returns a new instance of HtmlOptionsBuilder.
9 10 11 12 |
# File 'lib/ui_bibz/builders/html_options_builder.rb', line 9 def initialize(, ) @html_options = @options = end |
Instance Attribute Details
#html_options ⇒ Object
Returns the value of attribute html_options.
6 7 8 |
# File 'lib/ui_bibz/builders/html_options_builder.rb', line 6 def @html_options end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/ui_bibz/builders/html_options_builder.rb', line 7 def @options end |
Instance Method Details
#initialize_component_html_classes(component_html_classes) ⇒ Object
18 19 20 |
# File 'lib/ui_bibz/builders/html_options_builder.rb', line 18 def initialize_component_html_classes(component_html_classes) [:class] = component_html_classes end |
#initialize_component_html_options(component_html_options) ⇒ Object
14 15 16 |
# File 'lib/ui_bibz/builders/html_options_builder.rb', line 14 def () .merge!() end |