lib/y_nelson/place.rb in y_nelson-2.0.4 vs lib/y_nelson/place.rb in y_nelson-2.0.5
- old
+ new
@@ -1,5 +1,6 @@
+
# 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
@@ -25,7 +26,21 @@
#
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