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.
451 452 453 454 455 |
# File 'lib/scriptty/expect.rb', line 451 def initialize(pattern, callback, background) @pattern = pattern @callback = callback @background = background end |
Instance Attribute Details
#callback ⇒ Object (readonly)
Returns the value of attribute callback.
449 450 451 |
# File 'lib/scriptty/expect.rb', line 449 def callback @callback end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
448 449 450 |
# File 'lib/scriptty/expect.rb', line 448 def pattern @pattern end |
Instance Method Details
#background? ⇒ Boolean
457 458 459 |
# File 'lib/scriptty/expect.rb', line 457 def background? @background end |