Class: Semantics

Inherits:
Object
  • Object
show all
Defined in:
lib/semantics.rb

Overview

Generic Semantics class

Direct Known Subclasses

MelissaSemantics, NTKSemantics

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSemantics

Returns a new instance of Semantics.



7
8
9
10
# File 'lib/semantics.rb', line 7

def initialize
  @regexes = {}
  @sems = {}
end

Instance Attribute Details

#regexesObject (readonly)

Returns the value of attribute regexes.



5
6
7
# File 'lib/semantics.rb', line 5

def regexes
  @regexes
end

#semsObject (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_regexesObject



12
13
14
# File 'lib/semantics.rb', line 12

def sems_and_regexes
  [@sems, @regexes]
end