class DataMetaDom::RegExEntry

holds a custom regex symbol and the variables that use this regex

Attributes

r[R]
req[R]
vars[R]

Public Class Methods

new(regex, var, req) click to toggle source

initializes interna variables

# File lib/dataMetaDom/util.rb, line 179
def initialize(regex, var, req)
    @r = regex
    @vars = Set.new [var]
    @req = req
end

Public Instance Methods

<<(var) click to toggle source

adds the variable to the instance

# File lib/dataMetaDom/util.rb, line 185
def <<(var)
    @vars << var
end
req?() click to toggle source
# File lib/dataMetaDom/util.rb, line 189
def req?; @req end