Exception: Mirah::Transform::Error
- Inherits:
-
MirahError
- Object
- StandardError
- MirahError
- Mirah::Transform::Error
- Defined in:
- lib/mirah/transform/error.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Attributes inherited from MirahError
Instance Method Summary collapse
-
#initialize(msg, position, cause = nil) ⇒ Error
constructor
A new instance of Error.
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
#position ⇒ Object (readonly)
Returns the value of attribute position.
4 5 6 |
# File 'lib/mirah/transform/error.rb', line 4 def position @position end |