Class: AdLint::Ld::FunctionCall

Inherits:
Object
  • Object
show all
Defined in:
lib/adlint/ld/object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#calleeObject (readonly)

Returns the value of attribute callee.



543
544
545
# File 'lib/adlint/ld/object.rb', line 543

def callee
  @callee
end

#callerObject (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: ==

Returns:

  • (Boolean)


545
546
547
# File 'lib/adlint/ld/object.rb', line 545

def eql?(rhs)
  to_a == rhs.to_a
end

#hashObject



551
552
553
# File 'lib/adlint/ld/object.rb', line 551

def hash
  to_a.hash
end

#to_aObject



555
556
557
# File 'lib/adlint/ld/object.rb', line 555

def to_a
  [@caller, @callee]
end