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