Sha256: e7e1f50932520f8ff88162c4557798f6966eecc800aa15b5a2402f591cba03fb

Contents?: true

Size: 964 Bytes

Versions: 5

Compression:

Stored size: 964 Bytes

Contents

# 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.
    # 
    def bud( value: L!, f: nil )
      # FIXME
    end
    alias :>> :bud
  end

  # Produces the inspect string of the place.
  # 
  def inspect
    # Calling the ancestor's #inspect.
    YPetri::Place.instance_method( :inspect ).bind( self ).call
  end

  # Returns a string briefly describing the place.
  # 
  def to_s
    # Calling the ancestor's #to_s
    YPetri::Place.instance_method( :to_s ).bind( self ).call
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
y_nelson-2.1.0 lib/y_nelson/place.rb
y_nelson-2.0.8 lib/y_nelson/place.rb
y_nelson-2.0.7 lib/y_nelson/place.rb
y_nelson-2.0.6 lib/y_nelson/place.rb
y_nelson-2.0.5 lib/y_nelson/place.rb