Class: StatModule::Location
Instance Method Summary collapse
- #begin_column ⇒ Object
- #begin_column=(begin_column) ⇒ Object
- #begin_line ⇒ Object
- #begin_line=(begin_line) ⇒ Object
- #end_column ⇒ Object
- #end_column=(end_column) ⇒ Object
- #end_line ⇒ Object
- #end_line=(end_line) ⇒ Object
-
#initialize(path) ⇒ Location
constructor
A new instance of Location.
- #path ⇒ Object
- #path=(path) ⇒ Object
Methods inherited from JSONable
Constructor Details
#initialize(path) ⇒ Location
Returns a new instance of Location.
6 7 8 |
# File 'lib/location.rb', line 6 def initialize(path) @path = path end |
Instance Method Details
#begin_column ⇒ Object
33 34 35 |
# File 'lib/location.rb', line 33 def begin_column @beginColumn end |
#begin_column=(begin_column) ⇒ Object
28 29 30 31 |
# File 'lib/location.rb', line 28 def begin_column=(begin_column) raise TypeException unless begin_column.is_a?(Integer) @beginColumn = begin_column end |
#begin_line ⇒ Object
24 25 26 |
# File 'lib/location.rb', line 24 def begin_line @beginLine end |
#begin_line=(begin_line) ⇒ Object
19 20 21 22 |
# File 'lib/location.rb', line 19 def begin_line=(begin_line) raise TypeException unless begin_line.is_a?(Integer) @beginLine = begin_line end |
#end_column ⇒ Object
51 52 53 |
# File 'lib/location.rb', line 51 def end_column @endColumn end |
#end_column=(end_column) ⇒ Object
46 47 48 49 |
# File 'lib/location.rb', line 46 def end_column=(end_column) raise TypeException unless end_column.is_a?(Integer) @endColumn = end_column end |
#end_line ⇒ Object
42 43 44 |
# File 'lib/location.rb', line 42 def end_line @endLine end |
#end_line=(end_line) ⇒ Object
37 38 39 40 |
# File 'lib/location.rb', line 37 def end_line=(end_line) raise TypeException unless end_line.is_a?(Integer) @endLine = end_line end |
#path ⇒ Object
15 16 17 |
# File 'lib/location.rb', line 15 def path @path end |
#path=(path) ⇒ Object
10 11 12 13 |
# File 'lib/location.rb', line 10 def path=(path) raise TypeException unless path.is_a?(String) @path = path end |