Class: Nydp::Hash
Instance Method Summary
collapse
Methods included from Helper
#cons, #list, #literal?, #pair?, #sig, #sym, #sym?
Methods included from Converter
#n2r, #r2n
Instance Method Details
#_nydp_get(a) ⇒ Object
6
|
# File 'lib/nydp/hash.rb', line 6
def _nydp_get a ; self[a] ; end
|
#_nydp_keys ⇒ Object
8
|
# File 'lib/nydp/hash.rb', line 8
def _nydp_keys ; keys ; end
|
#_nydp_set(a, v) ⇒ Object
7
|
# File 'lib/nydp/hash.rb', line 7
def _nydp_set a, v ; self[a] = v ; end
|
#nydp_type ⇒ Object
4
|
# File 'lib/nydp/hash.rb', line 4
def nydp_type ; :hash ; end
|
5
|
# File 'lib/nydp/hash.rb', line 5
def to_ruby ; each_with_object({}) {|(k,v),h| h[n2r k] = n2r v} ; end
|