class Quiver::Error
Attributes
subject[R]
type[R]
Public Class Methods
new(subject, type)
click to toggle source
# File lib/quiver/error.rb, line 5 def initialize(subject, type) if type.is_a?(Symbol) @type = type else @type = type.dup.freeze if type end if subject.is_a?(Symbol) @subject = subject else @subject = subject.dup.freeze if subject end end
Public Instance Methods
==(other)
click to toggle source
# File lib/quiver/error.rb, line 19 def ==(other) type == other.type && subject == other.subject end