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



116
117
118
119
120
121
122
# File 'lib/oddb/html/view/document.rb', line 116

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