Sha256: 6f441b1b0e33b3385f0c70dc943e1a550fc5b40b4bec7ff0e209fe7c6bba38af
Contents?: true
Size: 485 Bytes
Versions: 4
Compression:
Stored size: 485 Bytes
Contents
module Antelope module DSL module Contexts class Match < Base def match(options) body = options.fetch(:body) action = options.fetch(:action) prec = options.fetch(:prec, '') @matches << { body: body, action: "{#{action}}", prec: prec } end private attr_reader :matches alias_method :data, :matches def before_call @matches = [] end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems