Class: RbsActiverecord::Generator::SecurePassword

Inherits:
Object
  • Object
show all
Defined in:
lib/rbs_activerecord/generator/secure_password.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ SecurePassword

Returns a new instance of SecurePassword.



9
10
11
# File 'lib/rbs_activerecord/generator/secure_password.rb', line 9

def initialize(model) #: void
  @model = model
end

Instance Attribute Details

#modelObject (readonly)

: RbsActiverecord::Model



6
7
8
# File 'lib/rbs_activerecord/generator/secure_password.rb', line 6

def model
  @model
end

Instance Method Details

#generateObject

: String



13
14
15
16
17
18
19
# File 'lib/rbs_activerecord/generator/secure_password.rb', line 13

def generate #: String
  <<~RBS
    module GeneratedSecurePasswordMethods
      #{methods}
    end
  RBS
end