Class: Nauvisian::CLI::Lister
- Inherits:
-
Object
- Object
- Nauvisian::CLI::Lister
- Defined in:
- lib/nauvisian/cli/lister.rb
Defined Under Namespace
Classes: CSV, Gfm, Json, Plain
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(headers) ⇒ Lister
constructor
A new instance of Lister.
Constructor Details
#initialize(headers) ⇒ Lister
Returns a new instance of Lister.
27 28 29 |
# File 'lib/nauvisian/cli/lister.rb', line 27 def initialize(headers) @headers = headers end |
Class Method Details
.all ⇒ Object
15 16 17 |
# File 'lib/nauvisian/cli/lister.rb', line 15 def self.all @listers.keys.sort end |
.for(format) ⇒ Object
11 12 13 |
# File 'lib/nauvisian/cli/lister.rb', line 11 def self.for(format) @listers.fetch(format) end |