Class: Array
- Defined in:
- lib/amp-front/third_party/maruku/structures_inspect.rb
Direct Known Subclasses
MaRuKu::AttributeList, MaRuKu::In::Markdown::BlockLevelParser::BlockContext
Instance Method Summary collapse
Instance Method Details
#inspect_more(compact, join_string, add_brackets = true) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/amp-front/third_party/maruku/structures_inspect.rb', line 36 def inspect_more(compact, join_string, add_brackets=true) s = map {|x| x.kind_of?(String) ? x.inspect : x.kind_of?(MaRuKu::MDElement) ? x.inspect(compact) : (raise "WTF #{x.class} #{x.inspect}") }.join(join_string) add_brackets ? "[#{s}]" : s end |