class Antelope::DSL::Contexts::Match

Attributes

data[R]
matches[R]

Public Instance Methods

match(options) click to toggle source
# File lib/antelope/dsl/contexts/match.rb, line 5
def match(options)
  body   = options.fetch(:body)
  action = options.fetch(:action)
  prec   = options.fetch(:prec, '')

  @matches << { body: body, action: "{#{action}}", prec: prec }
end

Private Instance Methods

before_call() click to toggle source
# File lib/antelope/dsl/contexts/match.rb, line 18
def before_call
  @matches = []
end