Public Instance methods
call(tag, input)
[show source]
# File lib/forme/bs5.rb 154 def call(tag, input) 155 attr = input.opts[:wrapper_attr] ? input.opts[:wrapper_attr].dup : { } 156 157 case input.type 158 when :submit, :reset, :hidden 159 super 160 when :radio, :checkbox 161 Forme.attr_classes_after(attr, "form-check") 162 input.tag(:div, attr, super) 163 else 164 input.tag(:div, attr, super) 165 end 166 end