Class: MethodSig::OptionalArgument

Inherits:
Argument
  • Object
show all
Defined in:
lib/decompiler/method/signature/argument.rb

Direct Known Subclasses

NodeOptionalArgument, YarvOptionalArgument

Instance Attribute Summary

Attributes inherited from Argument

#name

Instance Method Summary collapse

Methods inherited from Argument

#block?, #default, #initialize, #required?, #rest?, #to_s

Constructor Details

This class inherits a constructor from MethodSig::Argument

Instance Method Details

#optional?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/decompiler/method/signature/argument.rb', line 48

def optional?
  return true
end