module HP::Cloud::Mangler::Settings

Attributes

_settings[R]

Public Instance Methods

load!(filename, options = {}) click to toggle source

This is the main point of entry - we call Settings.load! and provide a name of the file to read as it's argument. We can also pass in some options.

# File lib/hpcloudmangler/settings.rb, line 13
def load!(filename, options = {})
  @_settings = MultiJson.decode(IO.read(filename), :symbolize_names => true).merge options
end