mushin 0.0.0.pre40 → 0.0.0.pre41
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/mushin/base.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 218faceba09c11187eff25942a3eb14cee37a424
|
4
|
+
data.tar.gz: ae5a3ebafb079474b3ab6b8da22c278ac241b580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b31b5fcd5ff5622acfa2051f7ca439ecc12e5ce6456be6eeac169827a5ad277a2c65f2ceb3ba45786f7cf972a0375520893a4f7f2d0fd4c82fa404341424e101
|
7
|
+
data.tar.gz: 8d35afc439d9edf673bff01ce7710a3c9d7056dce098579fb44a995f4bfba0238708d9828babf093a504dceabdf86b9d2028bacff23c96ed77bb1b5d906d58cf
|
data/lib/mushin/base.rb
CHANGED
@@ -70,9 +70,9 @@ module Mushin
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def self.build context_construct, statment_construct, activation_construct
|
73
|
-
|
74
|
-
|
75
|
-
|
73
|
+
@statment_construct = statment_construct
|
74
|
+
@activation_construct = activation_construct
|
75
|
+
@contexts = []
|
76
76
|
def context title, &block
|
77
77
|
@context = Mushin::DSL::Context.new title
|
78
78
|
def statment statment=[], &block
|
@@ -84,7 +84,7 @@ module Mushin
|
|
84
84
|
end
|
85
85
|
#Mushin::DSL::Notebook.class_eval do
|
86
86
|
Mushin::DSL::Notebook.instance_eval do
|
87
|
-
alias_method
|
87
|
+
alias_method @activation_construct, :activation
|
88
88
|
end
|
89
89
|
yield
|
90
90
|
@context.statments << @statment
|
@@ -92,10 +92,10 @@ module Mushin
|
|
92
92
|
end
|
93
93
|
#Mushin::DSL::Notebook.class_eval do
|
94
94
|
Mushin::DSL::Notebook.instance_eval do
|
95
|
-
alias_method
|
95
|
+
alias_method @statment_construct, :statment
|
96
96
|
end
|
97
97
|
yield
|
98
|
-
|
98
|
+
@contexts << @context
|
99
99
|
@context = nil
|
100
100
|
end
|
101
101
|
alias_method context_construct, :context
|