Class: ConceptQL::FakeGrapher

Inherits:
Object
  • Object
show all
Defined in:
lib/conceptql/fake_grapher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ FakeGrapher

Returns a new instance of FakeGrapher.



9
10
11
12
13
14
# File 'lib/conceptql/fake_grapher.rb', line 9

def initialize(options = {})
  @options = {
    dangler: true,
    tree: ConceptQL::Tree.new(nodifier: ConceptQL::GraphNodifier.new)
  }.merge(options)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/conceptql/fake_grapher.rb', line 7

def options
  @options
end

Instance Method Details

#graph_it(statement, output_file) ⇒ Object



16
17
18
# File 'lib/conceptql/fake_grapher.rb', line 16

def graph_it(statement, output_file)
  ConceptQL::Graph.new(statement, options).graph_it(output_file)
end