Class: AdLint::FunctionId
- Inherits:
-
Object
- Object
- AdLint::FunctionId
- Defined in:
- lib/adlint/code.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, sig_str) ⇒ FunctionId
constructor
A new instance of FunctionId.
- #named? ⇒ Boolean
- #to_a ⇒ Object
Constructor Details
#initialize(name, sig_str) ⇒ FunctionId
Returns a new instance of FunctionId.
469 470 471 |
# File 'lib/adlint/code.rb', line 469 def initialize(name, sig_str) @name, @signature = name, sig_str end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
473 474 475 |
# File 'lib/adlint/code.rb', line 473 def name @name end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
474 475 476 |
# File 'lib/adlint/code.rb', line 474 def signature @signature end |
Class Method Details
.of_ctors_section ⇒ Object
463 464 465 466 467 |
# File 'lib/adlint/code.rb', line 463 def self.of_ctors_section # NOTE: To represent an object referrer of non-function in case of global # function table initialization. self.new(nil, nil) end |
Instance Method Details
#named? ⇒ Boolean
476 477 478 |
# File 'lib/adlint/code.rb', line 476 def named? !@name.nil? end |
#to_a ⇒ Object
480 481 482 |
# File 'lib/adlint/code.rb', line 480 def to_a [@name, @signature] end |