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) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(location) ⇒ Location
Returns a new instance of Location.
63 64 65 66 |
# File 'lib/redsnow/parseresult.rb', line 63 def initialize(location) @length = location['length'] @index = location['index'] end |