Class: Shoehorn::Components::Icon
- Defined in:
- lib/shoehorn/components/icon.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Icon
constructor
A new instance of Icon.
- #to_s ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Icon
Returns a new instance of Icon.
4 5 6 |
# File 'lib/shoehorn/components/icon.rb', line 4 def initialize( = {}) super end |
Instance Method Details
#to_s ⇒ Object
8 9 10 11 12 |
# File 'lib/shoehorn/components/icon.rb', line 8 def to_s output_buffer << content_tag(:i, nil, ).html_safe output_buffer << ' ' << text if [:text] super end |