Class: Parlour::Types::Raw
Overview
A basic type as a raw string.
Instance Attribute Summary collapse
- 
  
    
      #str  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute str. 
Instance Method Summary collapse
- #==(other) ⇒ Object
- #describe ⇒ Object
- #generate_rbi ⇒ Object
- #generate_rbs ⇒ Object
- 
  
    
      #initialize(str)  ⇒ Raw 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Raw. 
Methods inherited from Type
Constructor Details
#initialize(str) ⇒ Raw
Returns a new instance of Raw.
| 47 48 49 | # File 'lib/parlour/types.rb', line 47 def initialize(str) @str = str end | 
Instance Attribute Details
#str ⇒ Object (readonly)
Returns the value of attribute str.
| 52 53 54 | # File 'lib/parlour/types.rb', line 52 def str @str end | 
Instance Method Details
#==(other) ⇒ Object
| 55 56 57 | # File 'lib/parlour/types.rb', line 55 def ==(other) Raw === other && str == other.str end | 
#describe ⇒ Object
| 70 71 72 | # File 'lib/parlour/types.rb', line 70 def describe str end | 
#generate_rbi ⇒ Object
| 60 61 62 | # File 'lib/parlour/types.rb', line 60 def generate_rbi str end | 
#generate_rbs ⇒ Object
| 65 66 67 | # File 'lib/parlour/types.rb', line 65 def generate_rbs str end |