Class: ScripTTY::Expect::Match

Inherits:
Object
  • Object
show all
Defined in:
lib/scriptty/expect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern_handle, result) ⇒ Match

Returns a new instance of Match.



488
489
490
491
# File 'lib/scriptty/expect.rb', line 488

def initialize(pattern_handle, result)
  @pattern_handle = pattern_handle
  @result = result
end

Instance Attribute Details

#pattern_handleObject (readonly)

Returns the value of attribute pattern_handle.



485
486
487
# File 'lib/scriptty/expect.rb', line 485

def pattern_handle
  @pattern_handle
end

#resultObject (readonly)

Returns the value of attribute result.



486
487
488
# File 'lib/scriptty/expect.rb', line 486

def result
  @result
end