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

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

Instance Method Summary collapse

Instance Method Details

#_(*contents) ⇒ Object



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

def _(*contents)
  self.class.call(:_, parent: self, contents:)
end

#AncestralObject



12
13
14
15
16
# File 'lib/sevgi/graphics/mixtures/underscore.rb', line 12

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