Class: YardToRbsInline::Converter::AppendLineContent
- Inherits:
-
Object
- Object
- YardToRbsInline::Converter::AppendLineContent
- Defined in:
- lib/yard_to_rbs_inline/converter/text_with_mod.rb
Class Method Summary collapse
-
.from_node_and_content(node, comment_content) ⇒ Object
: (Prism::Node, String) -> AppendLineContent.
Class Method Details
.from_node_and_content(node, comment_content) ⇒ Object
: (Prism::Node, String) -> AppendLineContent
31 32 33 34 35 |
# File 'lib/yard_to_rbs_inline/converter/text_with_mod.rb', line 31 def self.from_node_and_content(node, comment_content) start_line = node.location.start_line AppendLineContent.new(line_num: start_line, content: " #{comment_content}") end |