Sha256: 6e5808a8e4c4a11b9493ca7715cf25dcd1f28770d76e950a61e74b635f0a9975
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
require 'compo/branch' require 'compo/null_composite' require 'compo/parent_tracker' module Compo # A simple implementation of a leaf node # # Leaves have no children, but can be moved to one. They implement the # Composite API, but all additions and removals fail, and the Leaf always # reports no children. class Leaf < NullComposite include Branch end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
compo-0.3.1 | lib/compo/leaf.rb |
compo-0.3.0 | lib/compo/leaf.rb |