Class: Seafoam::Formatters::Base::DescribeFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/seafoam/formatters/base.rb

Overview

Formats the output of the ‘describe` command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(graph, description) ⇒ DescribeFormatter

Returns a new instance of DescribeFormatter.



10
11
12
13
# File 'lib/seafoam/formatters/base.rb', line 10

def initialize(graph, description)
  @graph = graph
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



8
9
10
# File 'lib/seafoam/formatters/base.rb', line 8

def description
  @description
end

#graphObject (readonly)

Returns the value of attribute graph.



8
9
10
# File 'lib/seafoam/formatters/base.rb', line 8

def graph
  @graph
end