class Metallize::Form::Field

Attributes

name[RW]
node[RW]
type[RW]
value[RW]

Public Class Methods

new(node, value = node.attribute('value')) click to toggle source
# File lib/metallize/form/field.rb, line 5
def initialize(node, value = node.attribute('value'))
  @node  = node
  @name  = node.attribute('name')
  @type  = node.attribute('type')
  @value = value
end