Exception: Transpec::Syntax::NotInExampleGroupContextError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/transpec/syntax.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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
  @message = build_message(original_syntax, target_syntax)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/transpec/syntax.rb', line 6

def message
  @message
end

#source_rangeObject (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_bufferObject



13
14
15
# File 'lib/transpec/syntax.rb', line 13

def source_buffer
  @source_range.source_buffer
end