Class: Bcdatabase::Commands::Epass
- Inherits:
-
Object
- Object
- Bcdatabase::Commands::Epass
- Defined in:
- lib/bcdatabase/commands/epass.rb
Instance Method Summary collapse
-
#initialize(streaming, opts = {}) ⇒ Epass
constructor
A new instance of Epass.
- #run ⇒ Object
Constructor Details
#initialize(streaming, opts = {}) ⇒ Epass
Returns a new instance of Epass.
7 8 9 10 11 |
# File 'lib/bcdatabase/commands/epass.rb', line 7 def initialize(streaming, opts={}) @streaming = streaming @echo = opts[:echo].nil? ? false : opts[:echo] @hl = HighLine.new($stdin, $stderr) end |
Instance Method Details
#run ⇒ Object
13 14 15 |
# File 'lib/bcdatabase/commands/epass.rb', line 13 def run @streaming ? streamed : interactive end |