class Syaso::ListItem

Attributes

holder[W]

ListItem holder

Public Class Methods

new(context, holder, content) click to toggle source

initialize instance

@param [ActionView] context @param [Syaso::Base] holder @param [Object] content

Calls superclass method Syaso::Base::new
# File lib/syaso/list_item.rb, line 11
def initialize(context, holder, content)
  super(context)
  self.holder = holder
  self.content = content
end

Public Instance Methods

index() click to toggle source

index of this content in list's content.

@return [Integer]

# File lib/syaso/list_item.rb, line 20
def index
  self.holder.index(self.content)
end

Protected Instance Methods

default_html_tag() click to toggle source

default html tag

@return [Symbol]

# File lib/syaso/list_item.rb, line 33
def default_html_tag
  :li
end