Class: Chamber::Commands::Show
- Defined in:
- lib/chamber/commands/show.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ Show
constructor
A new instance of Show.
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ Show
Returns a new instance of Show.
8 9 10 11 12 |
# File 'lib/chamber/commands/show.rb', line 8 def initialize( = {}) super self.as_env = [:as_env] end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/chamber/commands/show.rb', line 14 def call as_env ? chamber.to_s(pair_separator: "\n") : PP.pp(chamber.to_hash, StringIO.new, 60).string.chomp end |