Class: Strings::Case::Configuration Private
- Inherits:
-
Object
- Object
- Strings::Case::Configuration
- Defined in:
- lib/strings/case/configuration.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Responsible for storing acronyms configuration
Instance Attribute Summary collapse
-
#acronyms ⇒ Strings::Case::Acronyms
readonly
All the registered acronyms.
Instance Method Summary collapse
-
#acronym(*names) ⇒ void
Add an acronym.
-
#initialize ⇒ Configuration
constructor
Create a Configuration instance.
Constructor Details
#initialize ⇒ Configuration
Create a Configuration instance
27 28 29 |
# File 'lib/strings/case/configuration.rb', line 27 def initialize @acronyms = Acronyms.new end |
Instance Attribute Details
#acronyms ⇒ Strings::Case::Acronyms (readonly)
All the registered acronyms
19 20 21 |
# File 'lib/strings/case/configuration.rb', line 19 def acronyms @acronyms end |
Instance Method Details
#acronym(*names) ⇒ void
This method returns an undefined value.
Add an acronym
50 51 52 |
# File 'lib/strings/case/configuration.rb', line 50 def acronym(*names) names.each { |name| @acronyms << name } end |