Class: RbsActivesupport::Parser::MethodCall

Inherits:
Object
  • Object
show all
Defined in:
lib/rbs_activesupport/parser.rb,
sig/rbs_activesupport/parser.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, args, private, included: false, trailing_comment: nil) ⇒ MethodCall

Returns a new instance of MethodCall.

Parameters:

  • name (t)
  • args (Array[RubyVM::AbstractSyntaxTree::Node])
  • private (Boolean)
  • included: (Boolean) (defaults to: false)
  • trailing_comment: (String, nil) (defaults to: nil)


23
24
25
26
27
28
29
# File 'lib/rbs_activesupport/parser.rb', line 23

def initialize(name, args, private, included: false, trailing_comment: nil) #: void
  @name = name
  @args = args
  @private = private
  @included = included
  @trailing_comment = trailing_comment
end

Instance Attribute Details

#argsArray[RubyVM::AbstractSyntaxTree::Node] (readonly)

: Array

Returns:

  • (Array[RubyVM::AbstractSyntaxTree::Node])


12
13
14
# File 'lib/rbs_activesupport/parser.rb', line 12

def args
  @args
end

#includedBoolean (readonly)

: bool

Returns:

  • (Boolean)


13
14
15
# File 'lib/rbs_activesupport/parser.rb', line 13

def included
  @included
end

#namet (readonly)

: t

Returns:

  • (t)


11
12
13
# File 'lib/rbs_activesupport/parser.rb', line 11

def name
  @name
end

#trailing_commentString? (readonly)

: String?

Returns:

  • (String, nil)


14
15
16
# File 'lib/rbs_activesupport/parser.rb', line 14

def trailing_comment
  @trailing_comment
end

Instance Method Details

#private?Boolean

: bool

Returns:

  • (Boolean)


31
32
33
# File 'lib/rbs_activesupport/parser.rb', line 31

def private? #: bool
  @private
end