Sha256: f33259d46e79e3e2b4fcf84af683cfa5b4f277232abddb0df34aa29cd1d7c304

Contents?: true

Size: 330 Bytes

Versions: 4

Compression:

Stored size: 330 Bytes

Contents

class Tram::Policy
  # Describes a validator
  class Validator
    attr_reader :name, :stop_on_failure

    def ==(other)
      other.is_a?(self.class) && other.name == name
    end

    private

    def initialize(name, stop_on_failure: false)
      @name = name.to_sym
      @stop_on_failure = stop_on_failure
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tram-policy-0.1.1 lib/tram/policy/validator.rb
tram-policy-0.1.0 lib/tram/policy/validator.rb
tram-policy-0.0.3 lib/tram/policy/validator.rb
tram-policy-0.0.2 lib/tram/policy/validator.rb