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.



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

#calleeObject (readonly)

Returns the value of attribute callee.



549
550
551
# File 'lib/adlint/ld/object.rb', line 549

def callee
  @callee
end

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

Returns:

  • (Boolean)


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

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

#hashObject



557
558
559
# File 'lib/adlint/ld/object.rb', line 557

def hash
  to_a.hash
end

#to_aObject



561
562
563
# File 'lib/adlint/ld/object.rb', line 561

def to_a
  [@caller, @callee]
end