Module: IniParser

Defined in:
lib/iniparser/parser.rb,
lib/iniparser/version.rb

Defined Under Namespace

Classes: Error, ParseError, Parser

Constant Summary collapse

MAJOR =

todo: namespace inside version or something - why? why not??

1
MINOR =
0
PATCH =
1
VERSION =
[MAJOR,MINOR,PATCH].join('.')

Class Method Summary collapse

Class Method Details



13
14
15
# File 'lib/iniparser/version.rb', line 13

def self.banner
  "iniparser/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end

.load(text) ⇒ Object



10
# File 'lib/iniparser/parser.rb', line 10

def self.load( text )         Parser.load( text );       end

.load_file(path) ⇒ Object

returns a nested hash

(compatible structure - works like YAML.load_file)


9
# File 'lib/iniparser/parser.rb', line 9

def self.load_file( path  )   Parser.load_file( path );  end

.rootObject



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

def self.root
  "#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
end

.versionObject



9
10
11
# File 'lib/iniparser/version.rb', line 9

def self.version
  VERSION
end