Exception: Bool::SyntaxError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bool.rb,
ext/bool_ext/ext.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, first_line, last_line, first_column, last_column) ⇒ SyntaxError

Returns a new instance of SyntaxError.



12
13
14
15
# File 'lib/bool.rb', line 12

def initialize(message, first_line, last_line, first_column, last_column)
  super(message)
  @first_line, @last_line, @first_column, @last_column = first_line, last_line, first_column, last_column
end

Instance Attribute Details

#first_columnObject (readonly)

Returns the value of attribute first_column.



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

def first_column
  @first_column
end

#first_lineObject (readonly)

Returns the value of attribute first_line.



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

def first_line
  @first_line
end

#last_columnObject (readonly)

Returns the value of attribute last_column.



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

def last_column
  @last_column
end

#last_lineObject (readonly)

Returns the value of attribute last_line.



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

def last_line
  @last_line
end