Sha256: 076a60811f84149ad68a522c6d3ce4ca7a3ede8727ba776595ff1f268dff949a

Contents?: true

Size: 963 Bytes

Versions: 1

Compression:

Stored size: 963 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

1 entries across 1 versions & 1 rubygems

Version Path
y_nelson-2.3.0 lib/y_nelson/place.rb