Class: Nydp::Hash

Inherits:
Hash show all
Includes:
Helper
Defined in:
lib/nydp/hash.rb

Direct Known Subclasses

Namespace

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_keysObject



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_typeObject



4
# File 'lib/nydp/hash.rb', line 4

def nydp_type      ; :hash                                             ; end

#to_rubyObject



5
# File 'lib/nydp/hash.rb', line 5

def to_ruby        ; each_with_object({}) {|(k,v),h| h[n2r k] = n2r v} ; end