Exception: Transpec::ContextError
- Inherits:
-
StandardError
- Object
- StandardError
- Transpec::ContextError
- Defined in:
- lib/transpec/context_error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#source_range ⇒ Object
readonly
Returns the value of attribute source_range.
Instance Method Summary collapse
-
#initialize(source_range, original_syntax, target_syntax) ⇒ ContextError
constructor
A new instance of ContextError.
- #source_buffer ⇒ Object
Constructor Details
#initialize(source_range, original_syntax, target_syntax) ⇒ ContextError
Returns a new instance of ContextError.
7 8 9 10 |
# File 'lib/transpec/context_error.rb', line 7 def initialize(source_range, original_syntax, target_syntax) @source_range = source_range @message = (original_syntax, target_syntax) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/transpec/context_error.rb', line 5 def @message end |
#source_range ⇒ Object (readonly)
Returns the value of attribute source_range.
5 6 7 |
# File 'lib/transpec/context_error.rb', line 5 def source_range @source_range end |
Instance Method Details
#source_buffer ⇒ Object
12 13 14 |
# File 'lib/transpec/context_error.rb', line 12 def source_buffer @source_range.source_buffer end |