class SimpleForm::ActionViewExtensions::BuilderBase

:nodoc:
Based on (at this time upcoming) Rails 4 collection builders.
Base builder to handle each instance of a collection of radio buttons / check boxes.

def initialize(form_builder, method_name, object, sanitized_attribute_name, text,

def initialize(form_builder, method_name, object, sanitized_attribute_name, text,
               value, input_html_options)
  @form_builder = form_builder
  @method_name = method_name
  @object = object
  @sanitized_attribute_name = sanitized_attribute_name
  @text = text
  @value = value
  @input_html_options = input_html_options
end

def label(label_html_options={}, &block)

def label(label_html_options={}, &block)
  @form_builder.label(@sanitized_attribute_name, @text, label_html_options, &block)
end