Class: Shoehorn::Components::Base
- Inherits:
-
Object
- Object
- Shoehorn::Components::Base
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/shoehorn/components/base.rb
Direct Known Subclasses
Alert, Badge, Button, Dropdown, Form, Icon, Label, Modal, Navigation, ProgressBar
Instance Attribute Summary collapse
-
#default_options ⇒ Object
Returns the value of attribute default_options.
-
#options ⇒ Object
Returns the value of attribute options.
-
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Base
constructor
A new instance of Base.
- #to_s ⇒ Object
Constructor Details
#initialize(*args) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/shoehorn/components/base.rb', line 8 def initialize(*args) @output_buffer = "" @options = args..reverse_merge() end |
Instance Attribute Details
#default_options ⇒ Object
Returns the value of attribute default_options.
6 7 8 |
# File 'lib/shoehorn/components/base.rb', line 6 def @default_options end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/shoehorn/components/base.rb', line 6 def @options end |
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
6 7 8 |
# File 'lib/shoehorn/components/base.rb', line 6 def output_buffer @output_buffer end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/shoehorn/components/base.rb', line 13 def to_s @output_buffer.to_s.html_safe end |