Sha256: bc884dafd70526cd0400c9c65ddfcbfcd1a28f7995d28499472b4f6a5f1f87f7
Contents?: true
Size: 394 Bytes
Versions: 8
Compression:
Stored size: 394 Bytes
Contents
require "metamorpher/terms/term" require "metamorpher/matcher/match" module Metamorpher module Terms class Variable < Term DEFAULT_CONDITION = ->(_) { true } attributes greedy?: false, condition: DEFAULT_CONDITION def inspect name.to_s.upcase + (greedy? ? "+" : "") + (condition != DEFAULT_CONDITION ? "?" : "") end end end end
Version data entries
8 entries across 8 versions & 1 rubygems