Class: SexybuttonHelper::SexyButton
- Inherits:
-
Object
- Object
- SexybuttonHelper::SexyButton
- Defined in:
- app/helpers/sexybutton_helper.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#html_options ⇒ Object
Returns the value of attribute html_options.
-
#id ⇒ Object
Returns the value of attribute id.
-
#image ⇒ Object
Returns the value of attribute image.
-
#style ⇒ Object
Returns the value of attribute style.
-
#tag_name ⇒ Object
Returns the value of attribute tag_name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ SexyButton
constructor
A new instance of SexyButton.
Constructor Details
#initialize ⇒ SexyButton
Returns a new instance of SexyButton.
35 36 37 38 39 |
# File 'app/helpers/sexybutton_helper.rb', line 35 def initialize self.tag_name = 'button' self.color = 'black' self. = {} end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
33 34 35 |
# File 'app/helpers/sexybutton_helper.rb', line 33 def color @color end |
#html_options ⇒ Object
Returns the value of attribute html_options.
33 34 35 |
# File 'app/helpers/sexybutton_helper.rb', line 33 def @html_options end |
#id ⇒ Object
Returns the value of attribute id.
33 34 35 |
# File 'app/helpers/sexybutton_helper.rb', line 33 def id @id end |
#image ⇒ Object
Returns the value of attribute image.
33 34 35 |
# File 'app/helpers/sexybutton_helper.rb', line 33 def image @image end |
#style ⇒ Object
Returns the value of attribute style.
33 34 35 |
# File 'app/helpers/sexybutton_helper.rb', line 33 def style @style end |
#tag_name ⇒ Object
Returns the value of attribute tag_name.
33 34 35 |
# File 'app/helpers/sexybutton_helper.rb', line 33 def tag_name @tag_name end |
#type ⇒ Object
Returns the value of attribute type.
33 34 35 |
# File 'app/helpers/sexybutton_helper.rb', line 33 def type @type end |