Module: BoostInfo

Defined in:
lib/boost_info.rb,
lib/boost_info/node.rb,
lib/boost_info/parser.rb,
lib/boost_info/version.rb,
lib/boost_info/generator.rb

Defined Under Namespace

Classes: Generator, Node, Parser

Constant Summary collapse

VERSION =
'0.2.8'

Class Method Summary collapse

Class Method Details

.from_hash(hash, opts = {}) ⇒ Object



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

def self.from_hash(hash, opts={})
  BoostInfo::Parser.from_hash(hash, opts)
end

.from_info(source, opts = {}) ⇒ Object



16
17
18
# File 'lib/boost_info.rb', line 16

def self.from_info(source, opts={})
  BoostInfo::Parser.from_info(source, opts)
end

.parse(source, opts = {}) ⇒ Object



7
8
9
10
# File 'lib/boost_info.rb', line 7

def self.parse(source, opts={})
  root_node = BoostInfo::Parser.from_info(source, opts)
  root_node.to_h(opts)
end