class Forme::Labeler::Span

  1. lib/forme/transformers/labeler.rb
Superclass: Object

Methods

Public Instance

  1. call

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