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.
537 538 539 540 |
# File 'lib/adlint/ld/object.rb', line 537 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.
543 544 545 |
# File 'lib/adlint/ld/object.rb', line 543 def callee @callee end |
#caller ⇒ Object (readonly)
Returns the value of attribute caller.
542 543 544 |
# File 'lib/adlint/ld/object.rb', line 542 def caller @caller end |
Instance Method Details
#eql?(rhs) ⇒ Boolean Also known as: ==
545 546 547 |
# File 'lib/adlint/ld/object.rb', line 545 def eql?(rhs) to_a == rhs.to_a end |
#hash ⇒ Object
551 552 553 |
# File 'lib/adlint/ld/object.rb', line 551 def hash to_a.hash end |
#to_a ⇒ Object
555 556 557 |
# File 'lib/adlint/ld/object.rb', line 555 def to_a [@caller, @callee] end |