Public Instance methods
call(tag, input)
[show source]
# File lib/forme/transformers/labeler.rb 84 def call(tag, input) 85 label_attr = input.opts[:label_attr] 86 label_attr = label_attr ? label_attr.dup : {} 87 Forme.attr_classes(label_attr, "label") 88 [input.tag(:span, label_attr, input.opts[:label]), tag] 89 end