Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/cyc/extensions.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) to_cyc(raw = false)



14
15
16
17
18
19
20
21
# File 'lib/cyc/extensions.rb', line 14

def to_cyc(raw=false)
  contents = "("+map{|e| e.to_cyc(true)}.join(" ")+")"
  if raw
    contents
  else
    "(el-find-if-nart '#{contents})"
  end
end