jasmine-headless-webkit/lib/jasmine/headless/report_message/error.rb

21 lines
387 B
Ruby
Raw Normal View History

module Jasmine::Headless::ReportMessage
class Error
class << self
def new_from_parts(parts)
new(*parts)
end
end
attr_reader :message, :file_info
def initialize(message, file_info)
@message, @file_info = message, file_info
end
def ==(other)
self.message == other.message && self.file_info == other.file_info
end
end
end