Class: Rubycritic::Configuration
- Inherits:
-
Object
- Object
- Rubycritic::Configuration
- Defined in:
- lib/rubycritic/configuration.rb
Instance Attribute Summary collapse
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#root ⇒ Object
Returns the value of attribute root.
-
#source_control_system ⇒ Object
Returns the value of attribute source_control_system.
Instance Method Summary collapse
Instance Attribute Details
#mode ⇒ Object
Returns the value of attribute mode.
4 5 6 |
# File 'lib/rubycritic/configuration.rb', line 4 def mode @mode end |
#root ⇒ Object
Returns the value of attribute root.
3 4 5 |
# File 'lib/rubycritic/configuration.rb', line 3 def root @root end |
#source_control_system ⇒ Object
Returns the value of attribute source_control_system.
4 5 6 |
# File 'lib/rubycritic/configuration.rb', line 4 def source_control_system @source_control_system end |
Instance Method Details
#set(options) ⇒ Object
6 7 8 9 |
# File 'lib/rubycritic/configuration.rb', line 6 def set() self.mode = [:mode] || :default self.root = [:root] || "tmp/rubycritic" end |