Sha256: a8395c549672a0df21f357082d96781ff4423e89b7ae50a5fa7f323aed52d5fa

Contents?: true

Size: 344 Bytes

Versions: 28

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

class Code
  class Object
    class Code < Object
      def initialize(*args, **_kargs, &_block)
        raw = args.first.presence || Nothing.new
        @raw = raw.is_a?(Node) ? raw : Node::Code.new(::Code.parse(raw.to_s))
      end

      def evaluate(...)
        raw.evaluate(...)
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
code-ruby-1.0.0 lib/code/object/code.rb
code-ruby-0.15.16 lib/code/object/code.rb
code-ruby-0.15.15 lib/code/object/code.rb
code-ruby-0.15.14 lib/code/object/code.rb
code-ruby-0.15.13 lib/code/object/code.rb
code-ruby-0.15.12 lib/code/object/code.rb
code-ruby-0.15.11 lib/code/object/code.rb
code-ruby-0.15.10 lib/code/object/code.rb
code-ruby-0.15.9 lib/code/object/code.rb
code-ruby-0.15.8 lib/code/object/code.rb
code-ruby-0.15.7 lib/code/object/code.rb
code-ruby-0.15.6 lib/code/object/code.rb
code-ruby-0.15.5 lib/code/object/code.rb
code-ruby-0.15.4 lib/code/object/code.rb
code-ruby-0.15.3 lib/code/object/code.rb
code-ruby-0.15.2 lib/code/object/code.rb
code-ruby-0.15.0 lib/code/object/code.rb
code-ruby-0.14.9 lib/code/object/code.rb
code-ruby-0.14.8 lib/code/object/code.rb
code-ruby-0.14.6 lib/code/object/code.rb