Sha256: 82f0389ae287d47d6806df28c79c0315056d22e90365127aae57fb01365a9e65

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

class Code
  class Object
    class Class < Object
      def initialize(*args, **_kargs, &)
        raw = args.first || Nothing.new
        raw = raw.raw if raw.is_a?(Class)
        raw = raw.class if raw.is_an?(Object)
        @raw = raw
      end

      def call(...)
        raw.call(...)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
code-ruby-1.1.3 lib/code/object/class.rb
code-ruby-1.1.1 lib/code/object/class.rb
code-ruby-1.1.0 lib/code/object/class.rb