lib/y_nelson/place.rb in y_nelson-0.1.5 vs lib/y_nelson/place.rb in y_nelson-2.0.1
- old
+ new
@@ -1,28 +1,31 @@
# YNelson::Place is analogical to a spreadsheet cell. It is based on
# YPetri::Place and offers simlar interace.
#
class YNelson::Place < YPetri::Place
include YNelson::Yzz
+
+ # include Mongoid::Document
+ # store_in collection: "places", database: "y_nelson"
+
alias call along # .( :dim ) instead of .along( :dim )
class << self
+ private :new
end
+ def initialize( *args )
+ super
+
+ end
+
# Subclass of YTed::Zz::Side.
#
class Side < Side
- # "Budding": creation of new cells from the cell sides
+ # "Budding": creation of new cells from the cell sides.
+ #
def bud( value: L!, f: nil )
# FIXME
end
alias :>> :bud
end
-
- private
-
- # Place, Transition, Net class
- #
- def Place; ::YNelson::Place end
- def Transition; ::YNelson::Transition end
- def Net; ::YNelson::Net end
end