Sha256: d60a2dd1c37d4595a34d3729958f837ffb3cad034c21f229f5c3963d3fb98af6

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 Bytes

Contents

require 'compo/branches/branch'
require 'compo/composites'

module Compo
  module Branches
    # 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 < Compo::Composites::Leaf
      include Branch
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
compo-0.5.1 lib/compo/branches/leaf.rb
compo-0.5.0 lib/compo/branches/leaf.rb
compo-0.4.0 lib/compo/branches/leaf.rb