Sha256: fd35141c6fb2dee94f5c465c2d6bc1e6c320792812be3962a16ae37ff35ef86d
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
class YPetri::Agent::Selection # TODO: This calls for refactor as Array subclass. def initialize clear end def clear; @selection = [] end def set *aa; @selection = aa end def get; @selection end def add arg; @selection << arg end alias :<< :add def subtract arg; @selection -= arg end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
y_petri-2.1.3 | lib/y_petri/agent/selection.rb |