Class: ODDB::Html::View::Document

Inherits:
HtmlGrid::DivList
  • Object
show all
Defined in:
lib/oddb/html/view/document.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] => Chapter,
}
CSS_MAP =
["chapter"]

Instance Method Summary collapse

Instance Method Details

#initObject



107
108
109
110
111
112
113
# File 'lib/oddb/html/view/document.rb', line 107

def init
  @model = @model.chapters
  if(name = @session.user_input(:chapter))
    @model = @model.select { |chapter| chapter.name == name }
  end
  super
end