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.



286
287
288
# File 'lib/devise.rb', line 286

def initialize name
  @name = name
end

Instance Method Details

#getObject



290
291
292
# File 'lib/devise.rb', line 290

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