Exception: Transpec::Syntax::InvalidContextError
- Inherits:
-
StandardError
- Object
- StandardError
- Transpec::Syntax::InvalidContextError
- Defined in:
- lib/transpec/syntax.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) ⇒ InvalidContextError
constructor
A new instance of InvalidContextError.
- #source_buffer ⇒ Object
Constructor Details
#initialize(source_range, original_syntax, target_syntax) ⇒ InvalidContextError
Returns a new instance of InvalidContextError.
89 90 91 92 |
# File 'lib/transpec/syntax.rb', line 89 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.
87 88 89 |
# File 'lib/transpec/syntax.rb', line 87 def @message end |
#source_range ⇒ Object (readonly)
Returns the value of attribute source_range.
87 88 89 |
# File 'lib/transpec/syntax.rb', line 87 def source_range @source_range end |
Instance Method Details
#source_buffer ⇒ Object
94 95 96 |
# File 'lib/transpec/syntax.rb', line 94 def source_buffer @source_range.source_buffer end |