class PixxxerField
Attributes
name[R]
position[R]
precision[R]
type[R]
width[R]
Public Class Methods
new(field_name, template)
click to toggle source
# File lib/pixxxer/field.rb, line 6 def initialize(field_name, template) @template = template @name = field_name @position = 0 @precision = 0 @pixxxitter = FieldPixxxitter.new self @depixxxitter = FieldDepixxxitter.new self end
Public Instance Methods
and()
click to toggle source
# File lib/pixxxer/field.rb, line 37 def and @template end
as_float()
click to toggle source
# File lib/pixxxer/field.rb, line 29 def as_float @type = Float self end
as_integer()
click to toggle source
# File lib/pixxxer/field.rb, line 25 def as_integer @type = Integer self end
as_string()
click to toggle source
# File lib/pixxxer/field.rb, line 22 def as_string self end
at_position(position)
click to toggle source
# File lib/pixxxer/field.rb, line 18 def at_position(position) @position = position self end
depixxxit(record)
click to toggle source
# File lib/pixxxer/field.rb, line 43 def depixxxit(record) @depixxxitter.depixxxit record end
pixxxit(hash, record)
click to toggle source
# File lib/pixxxer/field.rb, line 40 def pixxxit(hash, record) @pixxxitter.pixxxit hash, record end
with_precision(precision)
click to toggle source
# File lib/pixxxer/field.rb, line 33 def with_precision(precision) @precision = precision self end
with_width(width)
click to toggle source
# File lib/pixxxer/field.rb, line 14 def with_width(width) @width = width self end