struct Bindgen::Crystal::Argument
- Bindgen::Crystal::Argument
- Struct
- Value
- Object
Overview
Argument naming logic. This is not a struct
.
Defined in:
bindgen/crystal/argument.crConstructors
Instance Method Summary
-
#name(name : String, idx) : String
Helper to get a non-colliding argument name.
-
#name(argument : Call::Argument, idx)
ditto
-
#name(argument : Parser::Argument, idx)
ditto
-
#self(klass_type : Parser::Type) : Call::Argument
Returns the
_self_
argument for the method, used in bindings.
Constructor Detail
Instance Method Detail
def name(name : String, idx) : String
#
Helper to get a non-colliding argument name. Makes sure that the name doesn't collide with a Crystal keyword.
Returns the _self_
argument for the method, used in bindings.