halunke 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/halunke/runtime/false.hal +3 -0
- data/lib/halunke/runtime/harray.rb +3 -0
- data/lib/halunke/runtime/hdictionary.rb +3 -0
- data/lib/halunke/runtime/hnumber.rb +3 -0
- data/lib/halunke/runtime/hregexp.rb +3 -0
- data/lib/halunke/runtime/hstring.rb +3 -0
- data/lib/halunke/runtime/true.hal +3 -0
- data/lib/halunke/version.rb +1 -1
- 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: a30ac31cb1f6c2532016bf0d0df8b675e14cb4c4
|
4
|
+
data.tar.gz: 92aad694be55cf366ef8cfa4246392439aeda9fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3088efc5a96653967c9011a10576f31501430cd4f71712db677cbca40bad57de4219a2cc7066c524f4af379af23433e03f8ac976955819591a98b64c838a24d6
|
7
|
+
data.tar.gz: a32c0fe5da4eee3a5d6fc4cf2b3e0e9233fa5036c9abfc25b2486848b429bd82182f4bfa96edb92cf074caa58ea636d1af252a46f4038c91841df9117ef58aac
|
data/Gemfile.lock
CHANGED
@@ -26,6 +26,9 @@ module Halunke
|
|
26
26
|
context["search_fn"].receive_message(context, "call", [HArray.create_instance([element])]) == context["true"]
|
27
27
|
end
|
28
28
|
}),
|
29
|
+
"to_b" => HFunction.new([:self], lambda { |context|
|
30
|
+
context["true"]
|
31
|
+
}),
|
29
32
|
"to_s" => HFunction.new([:self], lambda { |context|
|
30
33
|
inspected_members = context["self"].ruby_value.map do |member|
|
31
34
|
member.receive_message(context, "to_s", []).ruby_value
|
@@ -13,6 +13,9 @@ module Halunke
|
|
13
13
|
"merge" => HFunction.new([:self, :other], lambda { |context|
|
14
14
|
HDictionary.create_instance(context["self"].ruby_value.merge(context["other"].ruby_value))
|
15
15
|
}),
|
16
|
+
"to_b" => HFunction.new([:self], lambda { |context|
|
17
|
+
context["true"]
|
18
|
+
}),
|
16
19
|
"to_s" => HFunction.new([:self], lambda { |context|
|
17
20
|
x = []
|
18
21
|
context["self"].ruby_value.each_pair do |key, value|
|
@@ -37,6 +37,9 @@ module Halunke
|
|
37
37
|
context["false"]
|
38
38
|
end
|
39
39
|
}),
|
40
|
+
"to_b" => HFunction.new([:self], lambda { |context|
|
41
|
+
context["true"]
|
42
|
+
}),
|
40
43
|
"to_s" => HFunction.new([:self], lambda { |context|
|
41
44
|
float_value = context["self"].ruby_value.to_f
|
42
45
|
float_value = float_value.to_i if float_value.to_i == float_value
|
@@ -48,6 +48,9 @@ module Halunke
|
|
48
48
|
"+" => HFunction.new([:self, :other], lambda { |context|
|
49
49
|
HString.create_instance(context["self"].ruby_value + context["other"].ruby_value)
|
50
50
|
}),
|
51
|
+
"to_b" => HFunction.new([:self], lambda { |context|
|
52
|
+
context["true"]
|
53
|
+
}),
|
51
54
|
"to_s" => HFunction.new([:self], lambda { |context|
|
52
55
|
context["self"]
|
53
56
|
}),
|
data/lib/halunke/version.rb
CHANGED