Class: GreenPepper::ThenKeyword
Instance Attribute Summary
#block, #regex, #result
Instance Method Summary
collapse
#initialize, #match?
Instance Method Details
#args(action) ⇒ Object
143
144
145
146
|
# File 'lib/greenpepper/freetext.rb', line 143
def args(action)
args = old_args(action)
@args = args.collect{ |x| Expectation.new x }
end
|
#get_result ⇒ Object
148
149
150
|
# File 'lib/greenpepper/freetext.rb', line 148
def get_result
ThenResults.new @regex, @args
end
|
#old_args ⇒ Object
142
|
# File 'lib/greenpepper/freetext.rb', line 142
alias_method :old_args, :args
|