Class: Card::Bootstrap
- Extended by:
- ComponentLoader
- Includes:
- Delegate
- Defined in:
- mod/bootstrap/lib/card/bootstrap.rb,
mod/bootstrap/lib/card/bootstrap/content.rb,
mod/bootstrap/lib/card/bootstrap/delegate.rb,
mod/bootstrap/lib/card/bootstrap/component.rb,
mod/bootstrap/lib/card/bootstrap/basic_tags.rb,
mod/bootstrap/lib/card/bootstrap/tag_method.rb,
mod/bootstrap/lib/card/bootstrap/old_component.rb,
mod/bootstrap/lib/card/bootstrap/component/form.rb,
mod/bootstrap/lib/card/bootstrap/component/panel.rb,
mod/bootstrap/lib/card/bootstrap/component_klass.rb,
mod/bootstrap/lib/card/bootstrap/component/layout.rb,
mod/bootstrap/lib/card/bootstrap/component_loader.rb,
mod/bootstrap/lib/card/bootstrap/component/carousel.rb,
mod/bootstrap/lib/card/bootstrap/component/horizontal_form.rb
Defined Under Namespace
Modules: BasicTags, ComponentKlass, ComponentLoader, Content, Delegate Classes: Component, OldComponent, TagMethod
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context = nil) ⇒ Bootstrap
constructor
A new instance of Bootstrap.
-
#render(*args, &block) ⇒ Object
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/card/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 Card::Bootstrap::Delegate
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
7 8 9 |
# File 'mod/bootstrap/lib/card/bootstrap.rb', line 7 def context @context end |
Instance Method Details
#render(*args, &block) ⇒ Object
13 14 15 |
# File 'mod/bootstrap/lib/card/bootstrap.rb', line 13 def render *args, &block instance_exec(*args, &block) end |