Class: SqliteCrypto::Configuration
- Inherits:
-
Object
- Object
- SqliteCrypto::Configuration
- Defined in:
- lib/sqlite_crypto/configuration.rb
Instance Attribute Summary collapse
-
#uuid_version ⇒ Object
Returns the value of attribute uuid_version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/sqlite_crypto/configuration.rb', line 7 def initialize # Default to v7 on Ruby 3.3+, v4 on older versions @uuid_version = (Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0")) ? :v7 : :v4 end |
Instance Attribute Details
#uuid_version ⇒ Object
Returns the value of attribute uuid_version.
5 6 7 |
# File 'lib/sqlite_crypto/configuration.rb', line 5 def uuid_version @uuid_version end |