Class: ScripTTY::Expect::Match
- Inherits:
-
Object
- Object
- ScripTTY::Expect::Match
- Defined in:
- lib/scriptty/expect.rb
Instance Attribute Summary collapse
-
#pattern_handle ⇒ Object
readonly
Returns the value of attribute pattern_handle.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(pattern_handle, result) ⇒ Match
constructor
A new instance of Match.
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_handle ⇒ Object (readonly)
Returns the value of attribute pattern_handle.
485 486 487 |
# File 'lib/scriptty/expect.rb', line 485 def pattern_handle @pattern_handle end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
486 487 488 |
# File 'lib/scriptty/expect.rb', line 486 def result @result end |