Module: Alf::Engine::Cog

Instance Method Summary collapse

Instance Method Details

#each(&bl) ⇒ Object



10
11
12
13
# File 'lib/alf-engine/alf/engine/cog.rb', line 10

def each(&bl)
  return to_enum unless block_given?
  _each(&bl)
end

#to_dot(buffer = "") ⇒ Object



15
16
17
# File 'lib/alf-engine/alf/engine/cog.rb', line 15

def to_dot(buffer = "")
  Engine::ToDot.new.call(self, buffer)
end

#to_relationObject



6
7
8
# File 'lib/alf-engine/alf/engine/cog.rb', line 6

def to_relation
  Relation.coerce(to_a)
end