Class: RedSnow::Location
- Inherits:
-
Object
- Object
- RedSnow::Location
- Defined in:
- lib/redsnow/parseresult.rb
Overview
Array of possibly non-continuous blocks of the source API Blueprint.
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#length ⇒ Object
Returns the value of attribute length.
Instance Method Summary collapse
-
#initialize(location_hander, index) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(location_hander, index) ⇒ Location
Returns a new instance of Location.
77 78 79 80 |
# File 'lib/redsnow/parseresult.rb', line 77 def initialize(location_hander, index) @length = RedSnow::Binding.sc_location_length(location_hander, index) @index = RedSnow::Binding.sc_location_location(location_hander, index) end |