Module: YMLValidator

Defined in:
lib/yml_validator.rb,
lib/yml_validator/base.rb,
lib/yml_validator/helpers.rb,
lib/yml_validator/version.rb

Defined Under Namespace

Modules: Helpers Classes: Base

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.new(file_path) ⇒ Object



7
8
9
# File 'lib/yml_validator.rb', line 7

def self.new file_path
  YMLValidator::Base.new file_path
end

.valid?(file_path) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/yml_validator.rb', line 11

def self.valid? file_path
  YMLValidator.new(file_path).valid?
end