Class: Leftovers::ConfigLoader::StringSchema

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

Direct Known Subclasses

RegexpSchema

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/string_schema.rb', line 7

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