Class: MaRuKu::In::Markdown::BlockLevelParser::BlockContext

Inherits:
Array
  • Object
show all
Defined in:
lib/maruku/input/parse_block.rb

Instance Method Summary collapse

Methods inherited from Array

#replace_each_string

Instance Method Details

#describeObject



8
9
10
11
12
13
# File 'lib/maruku/input/parse_block.rb', line 8

def describe
  n = 5
  desc = size > n ? self[-n, n] : self
  "Last #{n} elements: " +
    desc.map {|x| "\n -" + x.inspect }.join
end