Class: TwitterBootstrapBuilder::Builders::Base
- Inherits:
-
Object
- Object
- TwitterBootstrapBuilder::Builders::Base
- Includes:
- TwitterBootstrapMarkup
- Defined in:
- lib/twitter_bootstrap_builder/builders/base.rb
Direct Known Subclasses
DropDownBuilder, FieldsetBuilder, LinkButtonBuilder, NavBarBuilder, NavContainerBuilder, NavListBuilder, SubmitButtonBuilder, TabBuilder, TableBuilder
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
- #html_safe ⇒ Object
-
#initialize(template, options = {}, &block) ⇒ Base
constructor
A new instance of Base.
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, ={}, &block) @template = template @options = @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
6 7 8 |
# File 'lib/twitter_bootstrap_builder/builders/base.rb', line 6 def block @block end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/twitter_bootstrap_builder/builders/base.rb', line 6 def @options end |
#template ⇒ Object (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_safe ⇒ Object
14 15 16 |
# File 'lib/twitter_bootstrap_builder/builders/base.rb', line 14 def html_safe to_s.html_safe end |