Class: Duxml::MetaClass
Overview
all XML files ready by Duxml have a metadata file generated with a modified, matching file name
Constant Summary
Constants included from Meta
Instance Attribute Summary collapse
-
#grammar ⇒ Object
readonly
Returns the value of attribute grammar.
-
#grammar_path ⇒ Object
readonly
Returns the value of attribute grammar_path.
-
#history ⇒ Object
readonly
Returns the value of attribute history.
Instance Method Summary collapse
-
#initialize(grammar_path = nil) ⇒ MetaClass
constructor
A new instance of MetaClass.
Methods included from Meta
Constructor Details
#initialize(grammar_path = nil) ⇒ MetaClass
Returns a new instance of MetaClass.
19 20 21 22 23 |
# File 'lib/duxml/meta.rb', line 19 def initialize(grammar_path=nil) @history = HistoryClass.new self.grammar = grammar_path ? Grammar.import(grammar_path) : GrammarClass.new @grammar_path = grammar_path end |
Instance Attribute Details
#grammar ⇒ Object (readonly)
Returns the value of attribute grammar.
25 26 27 |
# File 'lib/duxml/meta.rb', line 25 def grammar @grammar end |
#grammar_path ⇒ Object (readonly)
Returns the value of attribute grammar_path.
25 26 27 |
# File 'lib/duxml/meta.rb', line 25 def grammar_path @grammar_path end |
#history ⇒ Object (readonly)
Returns the value of attribute history.
25 26 27 |
# File 'lib/duxml/meta.rb', line 25 def history @history end |