Class: Cavendish::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/cavendish/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#project_nameObject

Returns the value of attribute project_name.



3
4
5
# File 'lib/cavendish/config.rb', line 3

def project_name
  @project_name
end

#testing_library=(value) ⇒ Object (writeonly)

Sets the attribute testing_library

Parameters:

  • value

    the value to set the attribute testing_library to.



4
5
6
# File 'lib/cavendish/config.rb', line 4

def testing_library=(value)
  @testing_library = value
end

Instance Method Details

#human_project_nameObject



14
15
16
# File 'lib/cavendish/config.rb', line 14

def human_project_name
  project_name.humanize
end

#use_enzyme?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/cavendish/config.rb', line 10

def use_enzyme?
  @testing_library === 'Enzyme'
end