Class: RbsActiverecord::Generator::SecurePassword
- Inherits:
-
Object
- Object
- RbsActiverecord::Generator::SecurePassword
- Defined in:
- lib/rbs_activerecord/generator/secure_password.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
: RbsActiverecord::Model.
Instance Method Summary collapse
-
#generate ⇒ Object
: String.
-
#initialize(model) ⇒ SecurePassword
constructor
A new instance of SecurePassword.
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
#model ⇒ Object (readonly)
: RbsActiverecord::Model
6 7 8 |
# File 'lib/rbs_activerecord/generator/secure_password.rb', line 6 def model @model end |
Instance Method Details
#generate ⇒ Object
: 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 |