class Transitions::Graph

Public Class Methods

new(class_name, options = {}) click to toggle source
Calls superclass method
# File lib/transitions/graph.rb, line 5
def initialize(class_name, options = {})
  options = {path: '.'}.merge(options)

  @file_path = File.join(options[:path], "#{class_name.parameterize('_')}_transitions.png")
  super(:G)
end

Public Instance Methods

output() click to toggle source
Calls superclass method
# File lib/transitions/graph.rb, line 12
def output
  super png: @file_path
end