Class: Devise::Getter

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

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Getter

Returns a new instance of Getter.



264
265
266
# File 'lib/devise.rb', line 264

def initialize name
  @name = name
end

Instance Method Details

#getObject



268
269
270
# File 'lib/devise.rb', line 268

def get
  ActiveSupport::Dependencies.constantize(@name)
end