module Rk
Module for including rk
to global namespace (class Object
).
Public Instance Methods
rk(*elements)
click to toggle source
Create and call a global instance of Rk
to either build a key or set/get attributes.
# File lib/rk.rb, line 65 def rk(*elements) $_rk = Rk.new unless $_rk # Differ between calling "rk" without/with params if elements.empty? # Return instance of Rk for calling methods like "rk.separator" $_rk else # Return key build by Rk.rk $_rk.rk(elements) end end