Class: Narabikae::Configuration
- Inherits:
-
Object
- Object
- Narabikae::Configuration
- Defined in:
- lib/narabikae/configuration.rb
Instance Method Summary collapse
-
#base=(int) ⇒ void
Sets the base value for FractionalIndexer configuration.
-
#digits ⇒ Array
The string of digits configured for the FractionalIndexer.
Instance Method Details
#base=(int) ⇒ void
This method returns an undefined value.
Sets the base value for FractionalIndexer configuration.
7 8 9 10 11 |
# File 'lib/narabikae/configuration.rb', line 7 def base=(int) FractionalIndexer.configure do |config| config.base = "base_#{int}".to_sym end end |
#digits ⇒ Array
Returns The string of digits configured for the FractionalIndexer.
15 16 17 |
# File 'lib/narabikae/configuration.rb', line 15 def digits FractionalIndexer.configuration.digits end |