Class: StatModule::Location

Inherits:
JSONable show all
Defined in:
lib/location.rb

Instance Method Summary collapse

Methods inherited from JSONable

#to_json

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_columnObject



33
34
35
# File 'lib/location.rb', line 33

def begin_column
  @beginColumn
end

#begin_column=(begin_column) ⇒ Object

Raises:



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_lineObject



24
25
26
# File 'lib/location.rb', line 24

def begin_line
  @beginLine
end

#begin_line=(begin_line) ⇒ Object

Raises:



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_columnObject



51
52
53
# File 'lib/location.rb', line 51

def end_column
  @endColumn
end

#end_column=(end_column) ⇒ Object

Raises:



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_lineObject



42
43
44
# File 'lib/location.rb', line 42

def end_line
  @endLine
end

#end_line=(end_line) ⇒ Object

Raises:



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

#pathObject



15
16
17
# File 'lib/location.rb', line 15

def path
  @path
end

#path=(path) ⇒ Object

Raises:



10
11
12
13
# File 'lib/location.rb', line 10

def path=(path)
  raise TypeException unless path.is_a?(String)
  @path = path
end