Class: RbsActionmailer::Generator
- Inherits:
-
Object
- Object
- RbsActionmailer::Generator
- Defined in:
- lib/rbs_actionmailer/generator.rb
Instance Attribute Summary collapse
-
#decl ⇒ Object
readonly
: RBS::Inline::AST::Declarations::ClassDecl | RBS::Inline::AST::Declarations::ModuleDecl | nil.
-
#klass ⇒ Object
readonly
: singleton(ActionMailer::Base).
-
#klass_name ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#generate ⇒ Object
: String.
-
#initialize(klass) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(klass) ⇒ Generator
Returns a new instance of Generator.
13 14 15 16 |
# File 'lib/rbs_actionmailer/generator.rb', line 13 def initialize(klass) #: void @klass = klass @klass_name = klass.name || "" end |
Instance Attribute Details
#decl ⇒ Object (readonly)
: RBS::Inline::AST::Declarations::ClassDecl | RBS::Inline::AST::Declarations::ModuleDecl | nil
10 11 12 |
# File 'lib/rbs_actionmailer/generator.rb', line 10 def decl @decl end |
#klass ⇒ Object (readonly)
: singleton(ActionMailer::Base)
8 9 10 |
# File 'lib/rbs_actionmailer/generator.rb', line 8 def klass @klass end |
#klass_name ⇒ Object (readonly)
: String
9 10 11 |
# File 'lib/rbs_actionmailer/generator.rb', line 9 def klass_name @klass_name end |