class Transpec::ContextError
Public Class Methods
new(old_syntax, new_syntax, source_range)
click to toggle source
Calls superclass method
Transpec::Annotatable::new
# File lib/transpec/conversion_error.rb, line 11 def initialize(old_syntax, new_syntax, source_range) message = build_message(old_syntax, new_syntax) super(message, source_range) end
Private Instance Methods
build_message(old_syntax, new_syntax)
click to toggle source
# File lib/transpec/conversion_error.rb, line 18 def build_message(old_syntax, new_syntax) "Cannot convert #{old_syntax} into #{new_syntax} " \ "since #{new_syntax} is not available in the context." end