Class: Shoehorn::Components::Icon

Inherits:
Base
  • Object
show all
Defined in:
lib/shoehorn/components/icon.rb

Instance Attribute Summary

Attributes inherited from Base

#options, #output_buffer

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Icon

Returns a new instance of Icon.



4
5
6
# File 'lib/shoehorn/components/icon.rb', line 4

def initialize(options = {})
  super
end

Instance Method Details

#to_sObject



8
9
10
11
12
# File 'lib/shoehorn/components/icon.rb', line 8

def to_s
  output_buffer << (:i, nil, build_tag_options).html_safe
  output_buffer << ' ' << text if options[:text]
  super
end