Class: FieldDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/ascii_data_row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, range, options) ⇒ FieldDefinition

Returns a new instance of FieldDefinition.



79
80
81
82
83
# File 'lib/ascii_data_row.rb', line 79

def initialize(type, range, options)
  @type = type
  @range = Range.new(range.min-1, range.max-1)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



77
78
79
# File 'lib/ascii_data_row.rb', line 77

def options
  @options
end

#rangeObject (readonly)

Returns the value of attribute range.



77
78
79
# File 'lib/ascii_data_row.rb', line 77

def range
  @range
end

#typeObject (readonly)

Returns the value of attribute type.



77
78
79
# File 'lib/ascii_data_row.rb', line 77

def type
  @type
end