Module: Rinterface::Erl
- Defined in:
- lib/rinterface/erl.rb
Class Method Summary collapse
Class Method Details
.const_missing(m) ⇒ Object
11 12 13 14 |
# File 'lib/rinterface/erl.rb', line 11 def const_missing(m) @@module = snake(m) self end |
.method_missing(fun, node, *rest) ⇒ Object
7 8 9 |
# File 'lib/rinterface/erl.rb', line 7 def method_missing(fun, node, *rest) Erlang::Node.fun(node.to_s, @@module, fun.to_s, *rest) end |
.snake(txt) ⇒ Object
16 17 18 |
# File 'lib/rinterface/erl.rb', line 16 def snake(txt) txt.to_s.split(/(?=[A-Z])/).join('_').downcase end |