Class: Leftovers::ConfigLoader::ScalarArgumentSchema

Inherits:
Schema
  • Object
show all
Defined in:
lib/leftovers/config_loader/scalar_argument_schema.rb

Class Method Summary collapse

Methods inherited from Schema

===, error, to_ruby

Class Method Details

.validate(node) ⇒ Object



7
8
9
10
# File 'lib/leftovers/config_loader/scalar_argument_schema.rb', line 7

def validate(node)
  error(node, 'be a string or an integer') unless node.string? || node.integer?
  super
end