Class: Tins::MethodDescription::Parameters::BlockParameter

Inherits:
Parameter
  • Object
show all
Defined in:
lib/tins/method_description.rb

Overview

Represents a block parameter (&block).

Instance Attribute Summary

Attributes inherited from Parameter

#name, #type

Instance Method Summary collapse

Methods inherited from Parameter

#==, #inspect

Instance Method Details

#to_sString

Converts the parameter to its string form.

Returns:

  • (String)

    Formatted as “&name”



93
94
95
# File 'lib/tins/method_description.rb', line 93

def to_s
  "&#{name}"
end