Sha256: 051e69774e0c8c16c3d63ca882bcddb1002273ee2dfb53e63b544baf1488cc96

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

require "prettyprint"

pp = PrettyPrint.new

pp.group 0 do
	pp.text "hello = "

	pp.group 0, "enum_____(", ")" do
		pp.nest(2) do
			pp.breakable ""
			count = 7
			count.times do |i|
				pp.text "hello #{i}"

				if i < count - 1
					pp.text ","
					pp.breakable " "
				end
			end
		end

		pp.breakable ""
	end
end

pp.flush
puts pp.output

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
strong_json-2.1.2 pp.rb
strong_json-2.1.1 pp.rb