Class: Array

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

Overview

Provides a ruby-oriented array conversion.

Instance Method Summary collapse

Instance Method Details

#to_sObject

a simple string conversion for arrays.



108
109
110
111
112
# File 'lib/eymiha.rb', line 108

def to_s()
  strings = []
  each { |member| strings << "#{member}" }
  "[ #{strings.join ", "} ]"
end

#to_s_oldObject



105
# File 'lib/eymiha.rb', line 105

alias to_s_old to_s