Class: Bootstrap

Inherits:
Object show all
Extended by:
ComponentLoader
Includes:
Delegate
Defined in:
card-mod-bootstrap/lib/bootstrap/basic_tags.rb,
card-mod-bootstrap/lib/bootstrap.rb,
card-mod-bootstrap/lib/bootstrap/content.rb,
card-mod-bootstrap/lib/bootstrap/delegate.rb,
card-mod-bootstrap/lib/bootstrap/component.rb,
card-mod-bootstrap/lib/bootstrap/tag_method.rb,
card-mod-bootstrap/lib/bootstrap/old_component.rb,
card-mod-bootstrap/lib/bootstrap/component/form.rb,
card-mod-bootstrap/lib/bootstrap/component/panel.rb,
card-mod-bootstrap/lib/bootstrap/component/layout.rb,
card-mod-bootstrap/lib/bootstrap/component_loader.rb,
card-mod-bootstrap/lib/bootstrap/component/carousel.rb,
card-mod-bootstrap/lib/bootstrap/component/component_class.rb,
card-mod-bootstrap/lib/bootstrap/component/horizontal_form.rb

Overview

require ‘component’

Defined Under Namespace

Modules: BasicTags, ComponentLoader, Content, Delegate Classes: Component, OldComponent, TagMethod

Instance Attribute Summary collapse

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.



11
12
13
# File 'card-mod-bootstrap/lib/bootstrap.rb', line 11

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 Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



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

def context
  @context
end

Instance Method Details

#render(*args, &block) ⇒ Object



15
16
17
# File 'card-mod-bootstrap/lib/bootstrap.rb', line 15

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