Sha256: 4fe44f7af84b0a1737eeae6e4f7b1fd39c55003e2e631c5489496755215d7a28
Contents?: true
Size: 600 Bytes
Versions: 4
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true module Leftovers class ConfigLoader class Schema class << self def error(node, requirement) node.error = "#{node.name_}must #{requirement}" false end def validate(node) node.valid? end def to_ruby(node) node.to_ruby end def ===(other) # leftovers:test_only # :nocov: if other.is_a?(::Module) self >= other else other.is_a?(self) end # :nocov: end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems