Class: Voltron::Config::Encrypt
- Inherits:
-
Object
- Object
- Voltron::Config::Encrypt
- Defined in:
- lib/voltron/config/encrypt.rb
Instance Attribute Summary collapse
-
#blacklist ⇒ Object
Returns the value of attribute blacklist.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#seed ⇒ Object
Returns the value of attribute seed.
Instance Method Summary collapse
-
#initialize ⇒ Encrypt
constructor
A new instance of Encrypt.
Constructor Details
#initialize ⇒ Encrypt
Returns a new instance of Encrypt.
12 13 14 15 16 |
# File 'lib/voltron/config/encrypt.rb', line 12 def initialize @offset ||= 262144 @seed ||= "" @blacklist ||= Rails.root.join("config", "locales", "blacklist.txt") end |
Instance Attribute Details
#blacklist ⇒ Object
Returns the value of attribute blacklist.
10 11 12 |
# File 'lib/voltron/config/encrypt.rb', line 10 def blacklist @blacklist end |
#offset ⇒ Object
Returns the value of attribute offset.
10 11 12 |
# File 'lib/voltron/config/encrypt.rb', line 10 def offset @offset end |
#seed ⇒ Object
Returns the value of attribute seed.
10 11 12 |
# File 'lib/voltron/config/encrypt.rb', line 10 def seed @seed end |