class DataMetaDom::RecUnique
Record
attrubute “unique
”
Public Class Methods
consumed?(source, record)
click to toggle source
Attempts to consume the “unique
” attribute for the given Record
from the given source.
-
Parameters
-
source
- an instance ofSourceFile
-
# File lib/dataMetaDom/recAttr.rb, line 219 def self.consumed?(source, record) source.line =~ /^#{UNIQUE}\W.+$/ ? record.addUnique(RecUnique.new.parse(source)) : nil end
new()
click to toggle source
Creates an instance with the keyword “unique
”
Calls superclass method
DataMetaDom::RecAttrSet::new
# File lib/dataMetaDom/recAttr.rb, line 209 def initialize #noinspection RubyArgCount super(UNIQUE) end