Class: RbsActivesupport::Parser::MethodCall

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

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.



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

#argsObject (readonly)

: Array



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

def args
  @args
end

#includedObject (readonly)

: bool



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

def included
  @included
end

#nameObject (readonly)

: t



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

def name
  @name
end

#trailing_commentObject (readonly)

: String?



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