Module: VueRailsFormBuilder::TagHelper
- Includes:
- VueOptionsResolver
- Defined in:
- lib/vue-rails-form-builder/tag_helper.rb
Instance Method Summary collapse
- #vue_content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, &block) ⇒ Object
- #vue_tag(name, options = nil, open = false, escape = true) ⇒ Object
Instance Method Details
#vue_content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, &block) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/vue-rails-form-builder/tag_helper.rb', line 12 def vue_content_tag(name, = nil, = nil, escape = true, &block) if block_given? if .is_a?(Hash) () end else () if end content_tag(name, , , escape, &block) end |
#vue_tag(name, options = nil, open = false, escape = true) ⇒ Object
7 8 9 10 |
# File 'lib/vue-rails-form-builder/tag_helper.rb', line 7 def vue_tag(name, = nil, open = false, escape = true) () if tag(name, , open, escape) end |