Class: FieldDefinition
- Inherits:
-
Object
- Object
- FieldDefinition
- Defined in:
- lib/ascii_data_row.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#range ⇒ Object
readonly
Returns the value of attribute range.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, range, options) ⇒ FieldDefinition
constructor
A new instance of FieldDefinition.
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, ) @type = type @range = Range.new(range.min-1, range.max-1) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
77 78 79 |
# File 'lib/ascii_data_row.rb', line 77 def @options end |
#range ⇒ Object (readonly)
Returns the value of attribute range.
77 78 79 |
# File 'lib/ascii_data_row.rb', line 77 def range @range end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
77 78 79 |
# File 'lib/ascii_data_row.rb', line 77 def type @type end |