Sha256: 30a3333e70f4f4a8e2e6529e72e21d173104505ec95a9120ffa2920a088d4c95

Contents?: true

Size: 233 Bytes

Versions: 1

Compression:

Stored size: 233 Bytes

Contents

class Formation::Types::Text
  
  attr_reader :field
  
  def initialize(field)
    @field = field
  end
  
  def to_html
    <<-HTML.strip
      <input type="text" name="#{field.name}" value="#{field.value}" />
    HTML
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formation-0.0.1 lib/formation/types/text.rb