Class: AdLint::Ld::FunctionCall
- Inherits:
-
Object
- Object
- AdLint::Ld::FunctionCall
- Defined in:
- lib/adlint/ld/object.rb
Instance Attribute Summary collapse
-
#callee ⇒ Object
readonly
Returns the value of attribute callee.
-
#caller ⇒ Object
readonly
Returns the value of attribute caller.
Instance Method Summary collapse
- #eql?(rhs) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(caller_ref, callee_fun) ⇒ FunctionCall
constructor
A new instance of FunctionCall.
- #to_a ⇒ Object
Constructor Details
#initialize(caller_ref, callee_fun) ⇒ FunctionCall
Returns a new instance of FunctionCall.
543 544 545 546 |
# File 'lib/adlint/ld/object.rb', line 543 def initialize(caller_ref, callee_fun) @caller = caller_ref @callee = callee_fun end |
Instance Attribute Details
#callee ⇒ Object (readonly)
Returns the value of attribute callee.
549 550 551 |
# File 'lib/adlint/ld/object.rb', line 549 def callee @callee end |
#caller ⇒ Object (readonly)
Returns the value of attribute caller.
548 549 550 |
# File 'lib/adlint/ld/object.rb', line 548 def caller @caller end |
Instance Method Details
#eql?(rhs) ⇒ Boolean Also known as: ==
551 552 553 |
# File 'lib/adlint/ld/object.rb', line 551 def eql?(rhs) to_a == rhs.to_a end |
#hash ⇒ Object
557 558 559 |
# File 'lib/adlint/ld/object.rb', line 557 def hash to_a.hash end |
#to_a ⇒ Object
561 562 563 |
# File 'lib/adlint/ld/object.rb', line 561 def to_a [@caller, @callee] end |