Sha256: 5ace0dfdd4fb9787770c6e8363d47a63cc9b896329659c3e722d0115a7b9fe6c
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true # Extend `Language.transform` to inject `using RubyNext` to every file RubyNext::Language.singleton_class.prepend(Module.new do def transform(contents, **hargs) # We cannot activate refinements in eval RubyNext::Core.inject!(contents) unless hargs[:eval] super(contents, **hargs) end end)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-next-0.1.1 | lib/ruby-next/core/runtime.rb |
ruby-next-0.1.0 | lib/ruby-next/core/runtime.rb |