Module: ErlangConfig
- Defined in:
- lib/erlang_config.rb,
lib/erlang_config/erlpid.rb,
lib/erlang_config/erlref.rb,
lib/erlang_config/erlatom.rb,
lib/erlang_config/erllist.rb,
lib/erlang_config/erlterm.rb,
lib/erlang_config/version.rb,
lib/erlang_config/erltuple.rb,
lib/erlang_config/erlbinary.rb,
lib/erlang_config/erlstring.rb,
lib/erlang_config/erlnumeration.rb
Defined Under Namespace
Classes: ErlAtom, ErlBinary, ErlEnumeration, ErlList, ErlPid, ErlRef, ErlString, ErlTerm, ErlTuple
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Method Summary
collapse
Class Method Details
.decode(str) ⇒ Object
15
16
17
18
19
20
|
# File 'lib/erlang_config.rb', line 15
def self.decode(str)
str.gsub!(/[\n\r]/,"")
erl_obj = ErlTerm.decode(str)
erl_obj.parse if erl_obj.is_a?(ErlEnumeration)
erl_obj.to_ruby
end
|
.encode(hash) ⇒ Object
22
23
24
|
# File 'lib/erlang_config.rb', line 22
def self.encode(hash)
puts "Sorry, this has not been written yet, pull requests are welcome :)"
end
|