Class: Cukedep::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/cukedep/config.rb,
lib/cukedep/config.rb

Overview

Configuration object for the Cukedep application.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cucumber_argsObject

Returns the value of attribute cucumber_args



7
8
9
# File 'lib/cukedep/config.rb', line 7

def cucumber_args
  @cucumber_args
end

#feature2idObject

Returns the value of attribute feature2id



7
8
9
# File 'lib/cukedep/config.rb', line 7

def feature2id
  @feature2id
end

#feature_encodingObject

Returns the value of attribute feature_encoding



7
8
9
# File 'lib/cukedep/config.rb', line 7

def feature_encoding
  @feature_encoding
end

#graph_fileObject

Returns the value of attribute graph_file



7
8
9
# File 'lib/cukedep/config.rb', line 7

def graph_file
  @graph_file
end

#id2featureObject

Returns the value of attribute id2feature



7
8
9
# File 'lib/cukedep/config.rb', line 7

def id2feature
  @id2feature
end

#proj_dirObject

Returns the value of attribute proj_dir



7
8
9
# File 'lib/cukedep/config.rb', line 7

def proj_dir
  @proj_dir
end

#rake_fileObject

Returns the value of attribute rake_file



7
8
9
# File 'lib/cukedep/config.rb', line 7

def rake_file
  @rake_file
end

Class Method Details

.defaultObject

Factory method. Build a config object with default settings.



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/cukedep/config.rb', line 22

def self.default()
  Config.new(
    'UTF-8',
    nil, 
    FileMetaData.new('feature2id.csv'), 
    FileMetaData.new('feature2id.csv'), 
    FileMetaData.new('dependencies.dot'),
    'cukedep.rake',
    []
  )
end