y_nelson 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/y_nelson/place.rb +15 -0
- data/lib/y_nelson/transition.rb +13 -0
- data/lib/y_nelson/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5b79d5f90cf8ce405c76303325fc137073269f1
|
4
|
+
data.tar.gz: ee9d7c7dc1b075c6b8277a20908fd641087c4bee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc1c4da3adc8e947668f84cc41e057929b408f93cf5de9b28f4cb96f5dc6672f28ae33c0d956793400568dd5e951af2b3a72ccf62b3aaa36671e329861f6ea6a
|
7
|
+
data.tar.gz: dc6b5518bb76ef200161ff0edc19988b4984eae6cb001136ffe27e6ae3ab4dd57c2a674c1d5210dfb8fb30a78badaac189175633bfaf952782e7a0dfe69340a2
|
data/lib/y_nelson/place.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
# YNelson::Place is analogical to a spreadsheet cell. It is based on
|
2
3
|
# YPetri::Place and offers simlar interace.
|
3
4
|
#
|
@@ -28,4 +29,18 @@ class YNelson::Place < YPetri::Place
|
|
28
29
|
end
|
29
30
|
alias :>> :bud
|
30
31
|
end
|
32
|
+
|
33
|
+
# Produces the inspect string of the place.
|
34
|
+
#
|
35
|
+
def inspect
|
36
|
+
# Calling the ancestor's #inspect.
|
37
|
+
YPetri::Place.instance_method( :inspect ).bind( self ).call
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns a string briefly describing the place.
|
41
|
+
#
|
42
|
+
def to_s
|
43
|
+
# Calling the ancestor's #to_s
|
44
|
+
YPetri::Place.instance_method( :to_s ).bind( self ).call
|
45
|
+
end
|
31
46
|
end
|
data/lib/y_nelson/transition.rb
CHANGED
@@ -29,4 +29,17 @@ class YNelson::Transition < YPetri::Transition
|
|
29
29
|
}
|
30
30
|
super
|
31
31
|
end
|
32
|
+
|
33
|
+
# Produces the inspect string of the place.
|
34
|
+
#
|
35
|
+
def inspect
|
36
|
+
# Calling the ancestor's #inspect.
|
37
|
+
YPetri::Transition.instance_method( :inspect ).bind( self ).call
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns a string briefly describing the place.
|
41
|
+
#
|
42
|
+
def to_s
|
43
|
+
YPetri::Transition.instance_method( :to_s ).bind( self ).call
|
44
|
+
end
|
32
45
|
end
|
data/lib/y_nelson/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: y_nelson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- boris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yzz
|