module Speculations::Parser::State::Triggers

Constants

BLANK_RGX
CONTEXT_RGX
EOBLOCK_RGX
EXAMPLE_RGX
GIVEN_RGX
RUBY_RGX
THEN_RGX

Public Instance Methods

blank_line(line) click to toggle source
# File lib/speculations/parser/state/triggers.rb, line 11
def blank_line line
  BLANK_RGX.match(line)
end
context_match(line) click to toggle source
# File lib/speculations/parser/state/triggers.rb, line 15
def context_match line
  CONTEXT_RGX.match(line)
end
eoblock_match(line) click to toggle source
# File lib/speculations/parser/state/triggers.rb, line 19
def eoblock_match line
  EOBLOCK_RGX.match(line)
end
maybe_example(line) click to toggle source
# File lib/speculations/parser/state/triggers.rb, line 23
def maybe_example line
  EXAMPLE_RGX.match(line) ||
    THEN_RGX.match(line)
end
maybe_include(line) click to toggle source
# File lib/speculations/parser/state/triggers.rb, line 28
def maybe_include line
  GIVEN_RGX.match(line)
end
ruby_code_block(line) click to toggle source
# File lib/speculations/parser/state/triggers.rb, line 32
def ruby_code_block line
  RUBY_RGX.match(line)
end