Class: Stringex::Configuration::StringExtensions

Inherits:
Base
  • Object
show all
Defined in:
lib/stringex/configuration/string_extensions.rb

Instance Attribute Summary

Attributes inherited from Base

#settings

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#adapter, configure, #initialize, system_wide_customizations, unconfigure!

Constructor Details

This class inherits a constructor from Stringex::Configuration::Base

Class Method Details

.default_settingsObject


8
9
10
11
12
13
14
15
16
17
# File 'lib/stringex/configuration/string_extensions.rb', line 8

def self.default_settings
  @default_settings ||= {
    allow_slash: false,
    exclude: [],
    force_downcase: true,
    limit: nil,
    replace_whitespace_with: "-",
    truncate_words: true
  }
end

Instance Method Details

#default_settingsObject


4
5
6
# File 'lib/stringex/configuration/string_extensions.rb', line 4

def default_settings
  self.class.default_settings
end