immutable 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/immutable.rb +16 -7
- metadata +1 -1
data/lib/immutable.rb
CHANGED
@@ -2,10 +2,19 @@
|
|
2
2
|
module Immutable
|
3
3
|
end
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
require_relative "immutable/
|
5
|
+
old_compile_option = RubyVM::InstructionSequence.compile_option
|
6
|
+
RubyVM::InstructionSequence.compile_option = {
|
7
|
+
:tailcall_optimization => true,
|
8
|
+
:trace_instruction => false
|
9
|
+
}
|
10
|
+
begin
|
11
|
+
require_relative "immutable/list"
|
12
|
+
require_relative "immutable/map"
|
13
|
+
require_relative "immutable/promise"
|
14
|
+
require_relative "immutable/stream"
|
15
|
+
require_relative "immutable/queue"
|
16
|
+
require_relative "immutable/output_restricted_deque"
|
17
|
+
require_relative "immutable/deque"
|
18
|
+
ensure
|
19
|
+
RubyVM::InstructionSequence.compile_option = old_compile_option
|
20
|
+
end
|