Class: SuperAwesomePrint::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Configuration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
# File 'lib/super_awesome_print/configuration.rb', line 5

def initialize
  @caller_lines = 1
  @blank_lines_top = 0
  @blank_lines_bottom = 0
  @root_path = rails_root
  @log_file_path = @root_path.empty? ? File.join(Dir.pwd, 'sapf.log') : File.join(@root_path, 'log', 'sapf.log')
end

Instance Attribute Details

#blank_lines_bottom ⇒ Object

Returns the value of attribute blank_lines_bottom.



3
4
5
# File 'lib/super_awesome_print/configuration.rb', line 3

def blank_lines_bottom
  @blank_lines_bottom
end

#blank_lines_top ⇒ Object

Returns the value of attribute blank_lines_top.



3
4
5
# File 'lib/super_awesome_print/configuration.rb', line 3

def blank_lines_top
  @blank_lines_top
end

#caller_lines ⇒ Object

Returns the value of attribute caller_lines.



3
4
5
# File 'lib/super_awesome_print/configuration.rb', line 3

def caller_lines
  @caller_lines
end

#log_file_path ⇒ Object

Returns the value of attribute log_file_path.



3
4
5
# File 'lib/super_awesome_print/configuration.rb', line 3

def log_file_path
  @log_file_path
end

#root_path ⇒ Object

Returns the value of attribute root_path.



3
4
5
# File 'lib/super_awesome_print/configuration.rb', line 3

def root_path
  @root_path
end