Class: Array

Inherits:
Object show all
Defined in:
lib/tecsgen.rb

Overview

Array initializer の ‘‘’ で囲まれた場合

mikan AggregateInitializer など、クラスを変更すべきである

Instance Method Summary collapse

Instance Method Details

#show_tree(indent) ⇒ Object



77
78
79
80
81
82
83
# File 'lib/tecsgen.rb', line 77

def show_tree(indent)
  indent.times{ print "  " }
  print("Array\n")
  self.each{|m|
    m.show_tree(indent + 1)
  }
end

#to_CDL_strObject

CDL の文字列を生成する



66
67
68
69
70
71
72
73
74
75
# File 'lib/tecsgen.rb', line 66

def to_CDL_str
  str = "{ "
  delim = ""
  self.each{|v|
    str += delim + v.to_CDL_str
    delim = ", "
  }
  str += " }"
  return str
end