Class: TwitterBootstrapBuilder::Builders::SubmitButtonBuilder
- Defined in:
- lib/twitter_bootstrap_builder/builders/submit_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/submit_button_builder.rb', line 5 def to_s submit = block ? Submit.new(*[:args], &Proc.new {}) : Submit.new(*[:args]) submit.send([:type]) if [:type] submit.send([:size]) if [:size] submit.append template.capture(self, &block) if block submit.to_s end |