Module: GuardedAsync

Includes:
Validate
Included in:
MetaMods, PDG
Defined in:
lib/bud/labeling/labeling.rb

Instance Method Summary collapse

Methods included from Validate

#collapse, #do_collapse, #labelof, #validate

Instance Method Details

#coll_type(nm) ⇒ Object



176
177
178
179
180
181
182
# File 'lib/bud/labeling/labeling.rb', line 176

def coll_type(nm)
  tab = self.tables[nm.to_sym]
  if tab.nil?
    tab = self.lattices[nm.to_sym]
  end
  tab.class
end

#guarded(lpath, rpath) ⇒ Object



184
185
186
187
188
189
190
191
# File 'lib/bud/labeling/labeling.rb', line 184

def guarded(lpath, rpath)
  if lpath.include? Bud::BudTable or lpath.include? Bud::LatticeWrapper
    if rpath.include? Bud::BudTable or rpath.include? Bud::LatticeWrapper
      return true
    end
  end
  false
end