class Depdump::Configurable::Configuration

Attributes

formatter[R]
output[RW]

Public Class Methods

new() click to toggle source
# File lib/depdump/configurable.rb, line 26
def initialize
  @output = $stdout
  @formatter = Depdump::DependencyGraph::Formatter::Json.new
end

Public Instance Methods

formatter=(type) click to toggle source
# File lib/depdump/configurable.rb, line 31
def formatter=(type)
  @formatter =
    case type
    when "json"
      Depdump::DependencyGraph::Formatter::Json.new
    when "table"
      Depdump::DependencyGraph::Formatter::Table.new
    else
      raise "Unknow format: #{type}"
    end
end