class Parlour::Types::Proc::Parameter
A parameter to a proc.
Attributes
default[R]
name[R]
type[R]
Public Class Methods
new(name, type, default = nil)
click to toggle source
# File lib/parlour/types.rb, line 510 def initialize(name, type, default = nil) @name = name @type = Type.to_type(type) @default = default end
Public Instance Methods
==(other)
click to toggle source
# File lib/parlour/types.rb, line 526 def ==(other) Parameter === other && name == other.name && type == other.type && default == other.default end