Class: Expect4r::Base
Direct Known Subclasses
Class Attribute Summary collapse
-
.routers ⇒ Object
readonly
Returns the value of attribute routers.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Base
constructor
A new instance of Base.
Methods included from Expect4r
#_login, #child_exit, #connected?, #exp_print, #exp_puts, #exp_send, #expect, #get_prompt, #getc, #interact, #login_by_proxy, #logout, #putc, #putcr, #read_until, #readline, #spawn
Constructor Details
Class Attribute Details
.routers ⇒ Object (readonly)
Returns the value of attribute routers.
6 7 8 |
# File 'lib/misc/base.rb', line 6 def routers @routers end |
Class Method Details
.add(r) ⇒ Object
10 11 12 13 |
# File 'lib/misc/base.rb', line 10 def add(r) @arr ||=[] @arr << r end |
.all ⇒ Object
7 8 9 |
# File 'lib/misc/base.rb', line 7 def all @arr || [] end |