Class: TestsDoc::Configuration
- Inherits:
-
Object
- Object
- TestsDoc::Configuration
- Defined in:
- lib/tests_doc/configuration.rb
Class Method Summary collapse
Class Method Details
.config(property, default = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/tests_doc/configuration.rb', line 5 def self.config(property, default = nil) attr_writer property define_method property do value = instance_variable_get("@#{property}") value.nil? ? default : instance_variable_get("@#{property}") end end |