Class: Pcli::Services::Qr
- Inherits:
-
Object
- Object
- Pcli::Services::Qr
- Defined in:
- lib/pcli/services/qr.rb
Instance Method Summary collapse
Instance Method Details
#show(content) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/pcli/services/qr.rb', line 8 def show(content) if which.exist?('qr') out, err = cmd.new(pty: true, printer: :null).run(" qr '#{content}'") output.puts out else output.puts RQRCode::QRCode.new(code).as_ansi end end |