Module: Sevgi::Graphics::Mixtures::Underscore

Defined in:
lib/sevgi/graphics/mixtures/underscore.rb

Instance Method Summary collapse

Instance Method Details

#_(*contents) ⇒ Object



7
8
9
# File 'lib/sevgi/graphics/mixtures/underscore.rb', line 7

def _(*contents)
  Element(:_, *contents)
end

#AncestralObject



15
16
17
18
19
# File 'lib/sevgi/graphics/mixtures/underscore.rb', line 15

def Ancestral
  {}.tap do |result|
    Root.Traverse() { |element| result.merge!(element[:_]) if element.has?(:_) }
  end
end

#Comment(comment) ⇒ Object



11
12
13
# File 'lib/sevgi/graphics/mixtures/underscore.rb', line 11

def Comment(comment)
  _(Content.verbatim("<!-- #{comment} -->"))
end