Class: TwitterBootstrapBuilder::Builders::Base

Inherits:
Object
  • Object
show all
Includes:
TwitterBootstrapMarkup
Defined in:
lib/twitter_bootstrap_builder/builders/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template, options = {}, &block) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
# File 'lib/twitter_bootstrap_builder/builders/base.rb', line 8

def initialize(template, options={}, &block)
  @template = template
  @options = options
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



6
7
8
# File 'lib/twitter_bootstrap_builder/builders/base.rb', line 6

def block
  @block
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/twitter_bootstrap_builder/builders/base.rb', line 6

def options
  @options
end

#templateObject (readonly)

Returns the value of attribute template.



6
7
8
# File 'lib/twitter_bootstrap_builder/builders/base.rb', line 6

def template
  @template
end

Instance Method Details

#html_safeObject



14
15
16
# File 'lib/twitter_bootstrap_builder/builders/base.rb', line 14

def html_safe
  to_s.html_safe
end