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.



270
271
272
# File 'lib/devise.rb', line 270

def initialize name
  @name = name
end

Instance Method Details

#getObject



274
275
276
# File 'lib/devise.rb', line 274

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