class DataMetaDom::RecIndex

Record attrubute “index

Public Class Methods

consumed?(source, record) click to toggle source

Attempts to consume the “index” attribute for the given Record from the given source.

# File lib/dataMetaDom/recAttr.rb, line 261
def self.consumed?(source, record)
    source.line =~ /^#{INDEX}\W+.+$/ ? record.addIndex(RecIndex.new.parse(source)) : nil
end
new() click to toggle source

Creates an instance with the keyword “index

Calls superclass method DataMetaDom::RecAttrList::new
# File lib/dataMetaDom/recAttr.rb, line 251
def initialize
#noinspection RubyArgCount
    super(INDEX)
end