Module: Mconnect::Helpers

Included in:
Authorizer
Defined in:
lib/mconnect/helpers.rb

Instance Method Summary collapse

Instance Method Details

#load_yaml(data) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/mconnect/helpers.rb', line 3

def load_yaml data
  if data.kind_of? Hash
    YAML.load(data.to_yaml)
  else
    YAML.load_file(data)
  end
end