Class: Parlour::Types::Proc::Parameter
- Inherits:
- 
      Object
      
        - Object
- Parlour::Types::Proc::Parameter
 
- Extended by:
- T::Sig
- Defined in:
- lib/parlour/types.rb
Overview
A parameter to a proc.
Instance Attribute Summary collapse
- 
  
    
      #default  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute default. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
- 
  
    
      #type  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute type. 
Instance Method Summary collapse
- #==(other) ⇒ Object
- 
  
    
      #initialize(name, type, default = nil)  ⇒ Parameter 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Parameter. 
Constructor Details
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
| 523 524 525 | # File 'lib/parlour/types.rb', line 523 def default @default end | 
#name ⇒ Object (readonly)
Returns the value of attribute name.
| 517 518 519 | # File 'lib/parlour/types.rb', line 517 def name @name end | 
#type ⇒ Object (readonly)
Returns the value of attribute type.
| 520 521 522 | # File 'lib/parlour/types.rb', line 520 def type @type end | 
Instance Method Details
#==(other) ⇒ Object
| 526 527 528 529 | # File 'lib/parlour/types.rb', line 526 def ==(other) Parameter === other && name == other.name && type == other.type && default == other.default end |