Class: ScripTTY::Expect::PatternHandle
- Inherits:
-
Object
- Object
- ScripTTY::Expect::PatternHandle
- Defined in:
- lib/scriptty/expect.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
readonly
Returns the value of attribute callback.
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
Instance Method Summary collapse
- #background? ⇒ Boolean
-
#initialize(pattern, callback, background) ⇒ PatternHandle
constructor
A new instance of PatternHandle.
Constructor Details
#initialize(pattern, callback, background) ⇒ PatternHandle
Returns a new instance of PatternHandle.
473 474 475 476 477 |
# File 'lib/scriptty/expect.rb', line 473 def initialize(pattern, callback, background) @pattern = pattern @callback = callback @background = background end |
Instance Attribute Details
#callback ⇒ Object (readonly)
Returns the value of attribute callback.
471 472 473 |
# File 'lib/scriptty/expect.rb', line 471 def callback @callback end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
470 471 472 |
# File 'lib/scriptty/expect.rb', line 470 def pattern @pattern end |
Instance Method Details
#background? ⇒ Boolean
479 480 481 |
# File 'lib/scriptty/expect.rb', line 479 def background? @background end |