Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/cyc/extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_cyc(raw = false) ⇒ Object
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 "(find-nart '#{contents})" end end |