Class: Courgette::Commands::Graph

Inherits:
Object
  • Object
show all
Defined in:
lib/courgette/commands/graph.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Graph

Returns a new instance of Graph.



7
8
9
# File 'lib/courgette/commands/graph.rb', line 7

def initialize options
  @options = options
end

Instance Method Details

#runObject



11
12
13
14
15
16
17
# File 'lib/courgette/commands/graph.rb', line 11

def run
  factory.load graph

  formats.each do |fmt|
    factory.save name, fmt
  end
end