class Maccro::DSL::Hash

Public Class Methods

match?(node) click to toggle source
# File lib/maccro/dsl/literal.rb, line 118
def self.match?(node); node.type == :HASH; end

Public Instance Methods

type() click to toggle source

HASH may be a hash literal, or keyword argument assignment `“a: 1” of f(a: 1)` HASH(nd_alen == 0) is a keyword argument assignment, but no way to get it via AST::Node

# File lib/maccro/dsl/literal.rb, line 117
def type; :HASH; end