Sha256: c1ff8c48e361513837738f798805dfe3e03ad84d88598f81c1f569db27ccb797

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

module Form
  module Component
    class Input < Base
      def attributes
        options.merge({
          value: value,
          name: composed_name,
          id: id_attribute
        })
      end

      def to_html
        Tag.new(:input, attributes).to_s
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
form-0.0.1.alpha1 lib/form/component/input.rb