Sha256: 6670577c32def12a29152f463ad1a9a3407dacc877988a496db7b68c1152ffbb
Contents?: true
Size: 434 Bytes
Versions: 3
Compression:
Stored size: 434 Bytes
Contents
require 'compo/movable' require 'compo/null_composite' require 'compo/parent_tracker' module Compo # A simple implementation of a leaf # # Leaves have no children, but can be moved to one. class Leaf < NullComposite include Movable include ParentTracker # Initialises the Leaf # # @api public # @example Creates a new Leaf. # leaf.new def initialize remove_parent end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
compo-0.1.2 | lib/compo/leaf.rb |
compo-0.1.1 | lib/compo/leaf.rb |
compo-0.1.0 | lib/compo/leaf.rb |