class Yard2steep::AST::MethodNode
MethodNode
represents `method` AST
.
Attributes
Public Class Methods
new(m_name:, p_list:, r_type:)
click to toggle source
@param [String] m_name
@param [Array<PNode>] p_list
@param [String] r_type
# File lib/yard2steep/ast/method_node.rb, line 11 def initialize(m_name:, p_list:, r_type:) Util.assert! { m_name.is_a?(String) } Util.assert! { p_list.is_a?(Array) } Util.assert! { r_type.is_a?(String) } @p_list = p_list @r_type = r_type @m_name = m_name end