Module: AmazonMarketplace::Helpers::FormHelper
- Defined in:
- lib/AmazonMarketplace/helpers/form_helper.rb
Class Method Summary collapse
- .content_tag(name, content, options = nil) ⇒ Object
- .tag(name, options = nil, open = false) ⇒ Object
Class Method Details
.content_tag(name, content, options = nil) ⇒ Object
10 11 12 |
# File 'lib/AmazonMarketplace/helpers/form_helper.rb', line 10 def self.content_tag(name, content, = nil) "<#{name}#{()}>#{content}</#{name}>" end |
.tag(name, options = nil, open = false) ⇒ Object
6 7 8 |
# File 'lib/AmazonMarketplace/helpers/form_helper.rb', line 6 def self.tag(name, = nil, open = false) "<#{name}#{() if }" + (open ? ">" : " />") end |