Class: Cavendish::Config
- Inherits:
-
Object
- Object
- Cavendish::Config
- Defined in:
- lib/cavendish/config.rb
Instance Attribute Summary collapse
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#testing_library ⇒ Object
writeonly
Sets the attribute testing_library.
Instance Method Summary collapse
Instance Attribute Details
#project_name ⇒ Object
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
4 5 6 |
# File 'lib/cavendish/config.rb', line 4 def testing_library=(value) @testing_library = value end |
Instance Method Details
#human_project_name ⇒ Object
14 15 16 |
# File 'lib/cavendish/config.rb', line 14 def human_project_name project_name.humanize end |
#use_enzyme? ⇒ Boolean
10 11 12 |
# File 'lib/cavendish/config.rb', line 10 def use_enzyme? @testing_library === 'Enzyme' end |