class Querly::Rule::Example

Attributes

after[R]
before[R]

Public Class Methods

new(before:, after:) click to toggle source
# File lib/querly/rule.rb, line 7
def initialize(before:, after:)
  @before = before
  @after = after
end

Public Instance Methods

==(other) click to toggle source
# File lib/querly/rule.rb, line 12
def ==(other)
  other.is_a?(Example) && other.before == before && other.after == after
end