Class: BulletmarkRepairer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/bulletmark_repairer/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
# File 'lib/bulletmark_repairer/configuration.rb', line 8

def initialize
  @debug = false
  @skip_file_list = []
  @logger = Logger.new("#{Rails.root}/log/bulletmark_repairer.log")
end

Instance Attribute Details

#debug=(value) ⇒ Object (writeonly)

Sets the attribute debug

Parameters:

  • value

    the value to set the attribute debug to.



6
7
8
# File 'lib/bulletmark_repairer/configuration.rb', line 6

def debug=(value)
  @debug = value
end

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/bulletmark_repairer/configuration.rb', line 5

def logger
  @logger
end

#skip_file_listObject

Returns the value of attribute skip_file_list.



5
6
7
# File 'lib/bulletmark_repairer/configuration.rb', line 5

def skip_file_list
  @skip_file_list
end

Instance Method Details

#debug?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/bulletmark_repairer/configuration.rb', line 14

def debug?
  @debug
end