Sha256: 1db0f26e051c0a3cacd510e3c71ce3d6218ec7545388833fcdc3b7e6d663c845
Contents?: true
Size: 285 Bytes
Versions: 1
Compression:
Stored size: 285 Bytes
Contents
module Analyst module Entities class Hash < Entity def pairs @pairs ||= process_nodes(ast.children) end def to_hash @pairs.inject({}) do |hash, pair| hash[pair.key] = pair.value hash end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
analyst-0.14.2 | lib/analyst/entities/hash.rb |