Module: Duxml::Meta
Constant Summary collapse
- FILE_EXT =
'.duxml'
Class Method Summary collapse
-
.meta_path(path) ⇒ String
Full path of metadata file based on content file’s name e.g.
-
.xml ⇒ Doc
Metadata document.
Instance Method Summary collapse
Class Method Details
Instance Method Details
#grammar=(g) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/duxml/meta.rb', line 44 def grammar=(g) @grammar = g.is_a?(GrammarClass) ? g : Grammar.import(g) history.delete_observers if history.respond_to?(:delete_observers) history.add_observer(grammar, :qualify) grammar.add_observer history end |