Sha256: f69f2f81bb43117cc9a3af7eee0d332130a8cdba2778a7c312db0a350de59289

Contents?: true

Size: 264 Bytes

Versions: 5

Compression:

Stored size: 264 Bytes

Contents

class YPetri::Manipulator::Selection
  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

5 entries across 5 versions & 1 rubygems

Version Path
y_petri-2.0.15 lib/y_petri/manipulator/selection.rb
y_petri-2.0.14.p1 lib/y_petri/manipulator/selection.rb
y_petri-2.0.14 lib/y_petri/manipulator/selection.rb
y_petri-2.0.7 lib/y_petri/manipulator/selection.rb
y_petri-2.0.3 lib/y_petri/manipulator/selection.rb