Sha256: 4ec31726979a1fafd4c3327f83ed84c98e4fd8ada00b0987aab27110bc99c901
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
require 'supa/command' module Supa module Commands class Object < Supa::Command def represent value = with_getter? ? context.instance_exec(&getter) : context.send(name) tree[name] = {} Supa::Builder.new(context: value, tree: tree[name]).instance_exec(&block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
supa-0.1.1 | lib/supa/commands/object.rb |