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.
466 467 468 469 |
# File 'lib/scriptty/expect.rb', line 466 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.
463 464 465 |
# File 'lib/scriptty/expect.rb', line 463 def pattern_handle @pattern_handle end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
464 465 466 |
# File 'lib/scriptty/expect.rb', line 464 def result @result end |