Sha256: 7ce1126e62aa55935a1b317d9c57d53924f137e06258273099065da272c42edc
Contents?: true
Size: 365 Bytes
Versions: 3
Compression:
Stored size: 365 Bytes
Contents
require 'supa/command' module Supa module Commands class Append < Supa::Command def represent tree[name] ||= [] Array(dynamic_value).each do |element| tree[name] << {} Supa::Builder.new(representer: representer, context: element, tree: tree[name][-1]).instance_exec(&block) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
supa-0.2.3 | lib/supa/commands/append.rb |
supa-0.2.2 | lib/supa/commands/append.rb |
supa-0.2.1 | lib/supa/commands/append.rb |