Exception: Mirah::Transform::Error

Inherits:
MirahError
  • Object
show all
Defined in:
lib/mirah/transform/error.rb

Instance Attribute Summary collapse

Attributes inherited from MirahError

#cause

Instance Method Summary collapse

Constructor Details

#initialize(msg, position, cause = nil) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
# File 'lib/mirah/transform/error.rb', line 5

def initialize(msg, position, cause=nil)
  position = position.position if position.respond_to? :position
  super(msg, position)
  self.cause = cause
end

Instance Attribute Details

#positionObject (readonly)

Returns the value of attribute position.



4
5
6
# File 'lib/mirah/transform/error.rb', line 4

def position
  @position
end