Class: RbsActivesupport::Parser::MethodCall
- Inherits:
-
Object
- Object
- RbsActivesupport::Parser::MethodCall
- Defined in:
- lib/rbs_activesupport/parser.rb,
sig/rbs_activesupport/parser.rbs
Instance Attribute Summary collapse
-
#args ⇒ Array[RubyVM::AbstractSyntaxTree::Node]
readonly
: Array.
-
#included ⇒ Boolean
readonly
: bool.
-
#name ⇒ t
readonly
: t.
-
#trailing_comment ⇒ String?
readonly
: String?.
Instance Method Summary collapse
-
#initialize(name, args, private, included: false, trailing_comment: nil) ⇒ MethodCall
constructor
A new instance of MethodCall.
-
#private? ⇒ Boolean
: bool.
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
#args ⇒ Array[RubyVM::AbstractSyntaxTree::Node] (readonly)
: Array
12 13 14 |
# File 'lib/rbs_activesupport/parser.rb', line 12 def args @args end |
#included ⇒ Boolean (readonly)
: bool
13 14 15 |
# File 'lib/rbs_activesupport/parser.rb', line 13 def included @included end |
#name ⇒ t (readonly)
: t
11 12 13 |
# File 'lib/rbs_activesupport/parser.rb', line 11 def name @name end |
#trailing_comment ⇒ String? (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
31 32 33 |
# File 'lib/rbs_activesupport/parser.rb', line 31 def private? #: bool @private end |