Class: RailsGraph::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_graph/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
# File 'lib/rails_graph/configuration.rb', line 8

def initialize
  @include_classes = []
  @include_packwerk = false
  @databases = true
  @columns = false
  @inheritance = true
  @gems = false
end

Instance Attribute Details

#columns=(value) ⇒ Object (writeonly)

Sets the attribute columns

Parameters:

  • value

    the value to set the attribute columns to.



6
7
8
# File 'lib/rails_graph/configuration.rb', line 6

def columns=(value)
  @columns = value
end

#databases=(value) ⇒ Object (writeonly)

Sets the attribute databases

Parameters:

  • value

    the value to set the attribute databases to.



6
7
8
# File 'lib/rails_graph/configuration.rb', line 6

def databases=(value)
  @databases = value
end

#gems=(value) ⇒ Object (writeonly)

Sets the attribute gems

Parameters:

  • value

    the value to set the attribute gems to.



6
7
8
# File 'lib/rails_graph/configuration.rb', line 6

def gems=(value)
  @gems = value
end

#include_classesObject

Returns the value of attribute include_classes.



5
6
7
# File 'lib/rails_graph/configuration.rb', line 5

def include_classes
  @include_classes
end

#include_packwerk=(value) ⇒ Object (writeonly)

Sets the attribute include_packwerk

Parameters:

  • value

    the value to set the attribute include_packwerk to.



6
7
8
# File 'lib/rails_graph/configuration.rb', line 6

def include_packwerk=(value)
  @include_packwerk = value
end

#inheritance=(value) ⇒ Object (writeonly)

Sets the attribute inheritance

Parameters:

  • value

    the value to set the attribute inheritance to.



6
7
8
# File 'lib/rails_graph/configuration.rb', line 6

def inheritance=(value)
  @inheritance = value
end

Instance Method Details

#columns?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/rails_graph/configuration.rb', line 21

def columns?
  @columns
end

#databases?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/rails_graph/configuration.rb', line 33

def databases?
  @databases
end

#gems?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/rails_graph/configuration.rb', line 37

def gems?
  @gems
end

#include_packwerk?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/rails_graph/configuration.rb', line 29

def include_packwerk?
  @include_packwerk
end

#inheritance?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/rails_graph/configuration.rb', line 25

def inheritance?
  @inheritance
end