Class: Devise::Getter
- Inherits:
-
Object
- Object
- Devise::Getter
- Defined in:
- lib/devise.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(name) ⇒ Getter
constructor
A new instance of Getter.
Constructor Details
#initialize(name) ⇒ Getter
Returns a new instance of Getter.
297 298 299 |
# File 'lib/devise.rb', line 297 def initialize name @name = name end |
Instance Method Details
#get ⇒ Object
301 302 303 |
# File 'lib/devise.rb', line 301 def get ActiveSupport::Dependencies.constantize(@name) end |