Class: Semantics
- Inherits:
- 
      Object
      
        - Object
- Semantics
 
- Defined in:
- lib/semantics.rb
Overview
Generic Semantics class
Direct Known Subclasses
Instance Attribute Summary collapse
- 
  
    
      #regexes  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute regexes. 
- 
  
    
      #sems  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute sems. 
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ Semantics 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Semantics. 
- #sems_and_regexes ⇒ Object
Constructor Details
#initialize ⇒ Semantics
Returns a new instance of Semantics.
| 7 8 9 10 | # File 'lib/semantics.rb', line 7 def initialize @regexes = {} @sems = {} end | 
Instance Attribute Details
#regexes ⇒ Object (readonly)
Returns the value of attribute regexes.
| 5 6 7 | # File 'lib/semantics.rb', line 5 def regexes @regexes end | 
#sems ⇒ Object (readonly)
Returns the value of attribute sems.
| 5 6 7 | # File 'lib/semantics.rb', line 5 def sems @sems end | 
Instance Method Details
#sems_and_regexes ⇒ Object
| 12 13 14 | # File 'lib/semantics.rb', line 12 def sems_and_regexes [@sems, @regexes] end |