Class: ObjParser::ObjParser
- Inherits:
-
Object
- Object
- ObjParser::ObjParser
- Defined in:
- lib/obj_parser/obj_parser.rb
Constant Summary collapse
- VERTEX_LINE_ID =
'v'
- NORMAL_LINE_ID =
'vn'
- TEXTURE_LINE_ID =
'vt'
- INDEXES_ID =
'f'
Instance Attribute Summary collapse
-
#index_array_starting_at_index ⇒ Object
Returns the value of attribute index_array_starting_at_index.
Instance Method Summary collapse
-
#initialize(index_array_starting_at = 0) ⇒ ObjParser
constructor
A new instance of ObjParser.
- #load(input_io) ⇒ Object
Constructor Details
#initialize(index_array_starting_at = 0) ⇒ ObjParser
Returns a new instance of ObjParser.
14 15 16 |
# File 'lib/obj_parser/obj_parser.rb', line 14 def initialize(index_array_starting_at = 0) self.index_array_starting_at_index = 1 end |
Instance Attribute Details
#index_array_starting_at_index ⇒ Object
Returns the value of attribute index_array_starting_at_index.
12 13 14 |
# File 'lib/obj_parser/obj_parser.rb', line 12 def index_array_starting_at_index @index_array_starting_at_index end |