Sha256: 0ca2b975127b5b5dfd2870cd323505c40873e770d1740f301cd50b521cb7deae
Contents?: true
Size: 325 Bytes
Versions: 4
Compression:
Stored size: 325 Bytes
Contents
module JSONBuilder class Elements attr_accessor :compilers def initialize(scope, items, &block) @compilers = [] items.each do |item| @compilers << Value.new(scope, item, &block) end end def to_s "[#{@compilers.collect(&:to_s).join(', ')}]" end end end
Version data entries
4 entries across 4 versions & 1 rubygems