Class: Array

Inherits:
Object show all
Defined in:
lib/goat/extn.rb,
lib/goat/html.rb

Instance Method Summary collapse

Instance Method Details

#glimpse(n = 100) ⇒ Object



95
96
97
# File 'lib/goat/extn.rb', line 95

def glimpse(n=100)
  "[" + self.map{|x| x.glimpse(n)}.join(', ') + "]"
end

#to_html(builder) ⇒ Object



177
178
179
# File 'lib/goat/html.rb', line 177

def to_html(builder)
  builder.array_to_html(self)
end