Class: Rubydex::Signature::Parameter
- Inherits:
-
Object
- Object
- Rubydex::Signature::Parameter
- Defined in:
- lib/rubydex/signature.rb,
ext/rubydex/signature.c
Direct Known Subclasses
BlockParameter, ForwardParameter, KeywordParameter, OptionalKeywordParameter, OptionalPositionalParameter, PositionalParameter, PostParameter, RestKeywordParameter, RestPositionalParameter
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
: Location.
-
#name ⇒ Object
readonly
: Symbol.
Instance Method Summary collapse
-
#initialize(name, location) ⇒ Parameter
constructor
: (Symbol, Location) -> void.
Constructor Details
#initialize(name, location) ⇒ Parameter
: (Symbol, Location) -> void
13 14 15 16 |
# File 'lib/rubydex/signature.rb', line 13 def initialize(name, location) @name = name @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
: Location
10 11 12 |
# File 'lib/rubydex/signature.rb', line 10 def location @location end |
#name ⇒ Object (readonly)
: Symbol
7 8 9 |
# File 'lib/rubydex/signature.rb', line 7 def name @name end |