Method: CfScript::Output::Buffer#last_line_matches?

Defined in:
lib/cf_script/output/buffer.rb

#last_line_matches?(regexp) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/cf_script/output/buffer.rb', line 52

def last_line_matches?(regexp)
  last_line =~ regexp ? true : false
end