class Viperaptor::RambafileValidator

Provides methods for validating Rambafile contents

Public Instance Methods

validate(path) click to toggle source

Method validates Rambafile contents @param path [String] The path to a Rambafile

@return [Void]

# File lib/viperaptor/helpers/rambafile.rb, line 11
def validate(path)
  file_contents = open(path).read
  preferences = file_contents.empty? ? {} : YAML.load(file_contents).to_hash
end