module Travis::Conditions::V0
Public Class Methods
eval(str, data, opts = {})
click to toggle source
# File lib/travis/conditions/v0.rb, line 9 def eval(str, data, opts = {}) Eval.new(parse(str, keys: data.keys), Data.new(data)).apply end
parse(str, opts = {})
click to toggle source
# File lib/travis/conditions/v0.rb, line 13 def parse(str, opts = {}) tree = parser(opts).parse(str) Transform.new.apply(tree) rescue Parslet::ParseFailed raise ParseError end
parser(opts)
click to toggle source
# File lib/travis/conditions/v0.rb, line 20 def parser(opts) parsers[opts] ||= Parser.new(opts) end
parsers()
click to toggle source
# File lib/travis/conditions/v0.rb, line 24 def parsers @parsers ||= {} end