Class: Narabikae::Configuration

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

Instance Method Summary collapse

Instance Method Details

#base=(int) ⇒ void

This method returns an undefined value.

Sets the base value for FractionalIndexer configuration.

Parameters:

  • int (Integer)

    The base value can be 10, 62, 94, with the default being 94.



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

#digitsArray

Returns The string of digits configured for the FractionalIndexer.

Returns:

  • (Array)

    The string of digits configured for the FractionalIndexer.

See Also:



15
16
17
# File 'lib/narabikae/configuration.rb', line 15

def digits
  FractionalIndexer.configuration.digits
end