Class: Crowbar::Client::Formatter::Array

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

Overview

Formatter to properly print out arrays 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/array.rb', line 27

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