class StatModule::Location

Public Class Methods

new(path, hash = nil) click to toggle source
Calls superclass method StatModule::JSONable::new
# File lib/location.rb, line 6
def initialize(path, hash = nil)
  if hash.is_a? Hash
    super(hash)
    return
  end
  @path = path
end

Public Instance Methods

begin_column() click to toggle source
# File lib/location.rb, line 37
def begin_column
  @beginColumn
end
begin_column=(begin_column) click to toggle source
# File lib/location.rb, line 32
def begin_column=(begin_column)
  raise TypeException unless begin_column.is_a?(Integer)
  @beginColumn = begin_column
end
begin_line() click to toggle source
# File lib/location.rb, line 28
def begin_line
  @beginLine
end
begin_line=(begin_line) click to toggle source
# File lib/location.rb, line 23
def begin_line=(begin_line)
  raise TypeException unless begin_line.is_a?(Integer)
  @beginLine = begin_line
end
end_column() click to toggle source
# File lib/location.rb, line 55
def end_column
  @endColumn
end
end_column=(end_column) click to toggle source
# File lib/location.rb, line 50
def end_column=(end_column)
  raise TypeException unless end_column.is_a?(Integer)
  @endColumn = end_column
end
end_line() click to toggle source
# File lib/location.rb, line 46
def end_line
  @endLine
end
end_line=(end_line) click to toggle source
# File lib/location.rb, line 41
def end_line=(end_line)
  raise TypeException unless end_line.is_a?(Integer)
  @endLine = end_line
end
path() click to toggle source
# File lib/location.rb, line 19
def path
  @path
end
path=(path) click to toggle source
# File lib/location.rb, line 14
def path=(path)
  raise TypeException unless path.is_a?(String)
  @path = path
end
print() click to toggle source