Class: Rubycritic::Configuration
- Inherits:
-
Object
- Object
- Rubycritic::Configuration
- Defined in:
- lib/rubycritic/configuration.rb
Instance Attribute Summary collapse
-
#deduplicate_symlinks ⇒ Object
Returns the value of attribute deduplicate_symlinks.
-
#format ⇒ Object
Returns the value of attribute format.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#no_browser ⇒ Object
Returns the value of attribute no_browser.
-
#open_with ⇒ Object
Returns the value of attribute open_with.
-
#root ⇒ Object
Returns the value of attribute root.
-
#source_control_system ⇒ Object
Returns the value of attribute source_control_system.
-
#suppress_ratings ⇒ Object
Returns the value of attribute suppress_ratings.
Instance Method Summary collapse
Instance Attribute Details
#deduplicate_symlinks ⇒ Object
Returns the value of attribute deduplicate_symlinks.
4 5 6 |
# File 'lib/rubycritic/configuration.rb', line 4 def deduplicate_symlinks @deduplicate_symlinks end |
#format ⇒ Object
Returns the value of attribute format.
4 5 6 |
# File 'lib/rubycritic/configuration.rb', line 4 def format @format end |
#mode ⇒ Object
Returns the value of attribute mode.
4 5 6 |
# File 'lib/rubycritic/configuration.rb', line 4 def mode @mode end |
#no_browser ⇒ Object
Returns the value of attribute no_browser.
4 5 6 |
# File 'lib/rubycritic/configuration.rb', line 4 def no_browser @no_browser end |
#open_with ⇒ Object
Returns the value of attribute open_with.
4 5 6 |
# File 'lib/rubycritic/configuration.rb', line 4 def open_with @open_with 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 |
#suppress_ratings ⇒ Object
Returns the value of attribute suppress_ratings.
4 5 6 |
# File 'lib/rubycritic/configuration.rb', line 4 def @suppress_ratings end |
Instance Method Details
#set(options) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/rubycritic/configuration.rb', line 7 def set() self.mode = [:mode] || :default self.root = [:root] || 'tmp/rubycritic' self.format = [:format] || :html self.deduplicate_symlinks = [:deduplicate_symlinks] || false self. = [:suppress_ratings] || false self.open_with = [:open_with] self.no_browser = [:no_browser] end |