Class: TwitterBootstrapBuilder::Builders::LinkButtonBuilder
- Defined in:
- lib/twitter_bootstrap_builder/builders/link_button_builder.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from TwitterBootstrapBuilder::Builders::Base
Instance Method Details
#to_s ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/twitter_bootstrap_builder/builders/link_button_builder.rb', line 5 def to_s = block ? LinkButton.new(*[:args], &Proc.new {}) : LinkButton.new(*[:args]) .send([:type]) if [:type] .send([:size]) if [:size] .append template.capture(self, &block) if block .to_s end |