module ErlangConfig

Constants

VERSION

Public Class Methods

decode(str) click to toggle source
# 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) click to toggle source
# File lib/erlang_config.rb, line 22
def self.encode(hash)
  puts "Sorry, this has not been written yet, pull requests are welcome :)"
end