Module: Confy

Defined in:
lib/confy/backend/simple_assignment.rb,
lib/confy.rb,
lib/confy/core.rb,
lib/confy/backend.rb,
lib/confy/version.rb,
lib/confy/backend/xml.rb,
lib/confy/backend/base.rb,
lib/confy/backend/json.rb,
lib/confy/backend/yaml.rb

Overview

Example: #my.conf x=1 y=2 z:3 Confy.parse(“my.conf”, :as => :simple_assignment)

Defined Under Namespace

Modules: Backend Classes: Core, FileNotFoundError, UnsupportedFileExtensionError

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.[](*args) ⇒ Object



17
18
19
# File 'lib/confy.rb', line 17

def [] *args
  parse *args
end

.parse(*args) ⇒ Object



12
13
14
15
# File 'lib/confy.rb', line 12

def parse *args
  core = Core.new *args
  core.parse
end