Class: RbsActionmailer::Parser
- Inherits:
-
Object
- Object
- RbsActionmailer::Parser
- Defined in:
- lib/rbs_actionmailer/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.parse(klass_name) ⇒ Object
11 12 13 14 |
# File 'lib/rbs_actionmailer/parser.rb', line 11 def self.parse(klass_name) #: t? parser = new parser.parse(klass_name) end |
Instance Method Details
#parse(klass_name) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/rbs_actionmailer/parser.rb', line 17 def parse(klass_name) #: t? decls = load(klass_name) return unless decls names = klass_name.split("::").map(&:to_sym) dig(decls, *names) end |