class Plumb::Key
def initialize(key, optional: false)
def initialize(key, optional: false) key_s = key.to_s match = OPTIONAL_EXP.match(key_s) @node_name = :key @key = match[1] @to_sym = @key.to_sym @optional = !match[2].nil? ? true : optional freeze end