Class: RackCommitStats::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/rack-commit-stats.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#file_path_prefixObject

Returns the value of attribute file_path_prefix

Returns:

  • (Object)

    the current value of file_path_prefix



12
13
14
# File 'lib/rack-commit-stats.rb', line 12

def file_path_prefix
  @file_path_prefix
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



12
13
14
# File 'lib/rack-commit-stats.rb', line 12

def mode
  @mode
end

#repo_pathObject

Returns the value of attribute repo_path

Returns:

  • (Object)

    the current value of repo_path



12
13
14
# File 'lib/rack-commit-stats.rb', line 12

def repo_path
  @repo_path
end

Instance Method Details

#file_mode?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/rack-commit-stats.rb', line 13

def file_mode?
  mode == FILE_MODE
end