class Dill::Field

A form field.

Public Class Methods

root(selector) click to toggle source
Calls superclass method
# File lib/dill/widgets/field.rb, line 4
def self.root(selector)
  super String === selector ? [:field, selector] : selector
end

Public Instance Methods

get() click to toggle source

@return This field's value.

Override this to get the actual value.

# File lib/dill/widgets/field.rb, line 11
def get
  raise NotImplementedError
end
set(value) click to toggle source

Sets the field value.

Override this to set the value.

# File lib/dill/widgets/field.rb, line 18
def set(value)
  raise NotImplementedError
end