Class: SelfML::AST::Document

Inherits:
Array
  • Object
show all
Defined in:
lib/selfml/ast/document.rb

Overview

SelfML::AST::Document

Instance Method Summary collapse

Instance Method Details

#to_sObject

Serialize


8
9
10
11
# File 'lib/selfml/ast/document.rb', line 8

def to_s
  a = self.map(&:serialize).reject {|n| n.nil? }
  a.join("\n\n") + "\n"
end