Class: Bootstrap

Inherits:
Object
  • Object
show all
Extended by:
ComponentLoader
Includes:
Delegate
Defined in:
mod/bootstrap/lib/bootstrap/component.rb,
mod/bootstrap/lib/bootstrap.rb,
mod/bootstrap/lib/bootstrap/delegate.rb,
mod/bootstrap/lib/bootstrap/basic_tags.rb,
mod/bootstrap/lib/bootstrap/component/form.rb,
mod/bootstrap/lib/bootstrap/component/panel.rb,
mod/bootstrap/lib/bootstrap/component/layout.rb,
mod/bootstrap/lib/bootstrap/component_loader.rb,
mod/bootstrap/lib/bootstrap/component/horizontal_form.rb

Overview

require 'component'

Defined Under Namespace

Modules: BasicTags, ComponentLoader, Delegate Classes: Component

Instance Method Summary collapse

Methods included from ComponentLoader

components, include_component, load_components, to_const

Methods included from Delegate

#method_missing, #respond_to_missing?

Constructor Details

#initialize(context = nil) ⇒ Bootstrap

Returns a new instance of Bootstrap.



9
10
11
# File 'mod/bootstrap/lib/bootstrap.rb', line 9

def initialize context=nil
  @context = context
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bootstrap::Delegate

Instance Method Details

#render(*args, &block) ⇒ Object



13
14
15
# File 'mod/bootstrap/lib/bootstrap.rb', line 13

def render *args, &block
  instance_exec *args, &block
end