Class: Formic::ListItem

Inherits:
Base
  • Object
show all
Defined in:
lib/formic/list_item.rb

Instance Attribute Summary collapse

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

#textObject (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='', options={}, &block
  super options, &block
  @text = text
  return self
end