Class: Crowbar::Client::Formatter::Hash

Inherits:
Base
  • Object
show all
Defined in:
lib/crowbar/client/formatter/hash.rb

Overview

Formatter to properly print out hashes in different formats

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #result

Constructor Details

This class inherits a constructor from Crowbar::Client::Formatter::Base

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/crowbar/client/formatter/hash.rb', line 27

def empty?
  options[:values].empty?
end