Exception: Transpec::Syntax::NotInExampleGroupContextError
- Inherits:
-
StandardError
- Object
- StandardError
- Transpec::Syntax::NotInExampleGroupContextError
- 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) ⇒ NotInExampleGroupContextError
constructor
A new instance of NotInExampleGroupContextError.
- #source_buffer ⇒ Object
Constructor Details
#initialize(source_range, original_syntax, target_syntax) ⇒ NotInExampleGroupContextError
Returns a new instance of NotInExampleGroupContextError.
8 9 10 11 |
# File 'lib/transpec/syntax.rb', line 8 def initialize(source_range, original_syntax, target_syntax) @source_range = source_range = (original_syntax, target_syntax) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/transpec/syntax.rb', line 6 def end |
#source_range ⇒ Object (readonly)
Returns the value of attribute source_range.
6 7 8 |
# File 'lib/transpec/syntax.rb', line 6 def source_range @source_range end |
Instance Method Details
#source_buffer ⇒ Object
13 14 15 |
# File 'lib/transpec/syntax.rb', line 13 def source_buffer @source_range.source_buffer end |