Class: Formic::ListItem
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Base
#content, #options, #page, #template
Instance Method Summary collapse
Methods inherited from Base
#add_class, default_template, #formics, #has_class?, #initialize, #merge_options, #method_missing, template, #to_s
Constructor Details
This class inherits a constructor from Formic::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Formic::Base
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/formic/list_item.rb', line 5 def text @text end |
Instance Method Details
#_initialize(text = '', options = {}, &block) ⇒ Object
7 8 9 10 11 |
# File 'lib/formic/list_item.rb', line 7 def _initialize text='', ={}, &block super , &block @text = text return self end |