Sha256: 3723178886283a67a67709728b04ebc87a5be3fa1b24ac84b070649047fa369d

Contents?: true

Size: 364 Bytes

Versions: 7

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

class Code
  class Object
    class Class < Object
      attr_reader :raw

      def initialize(raw)
        @raw = raw
      end

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

      def to_s
        raw.name
      end

      def inspect
        to_s
      end

      def self.name
        "Class"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
code-ruby-0.9.0 lib/code/object/class.rb
code-ruby-0.8.5 lib/code/object/class.rb
code-ruby-0.8.4 lib/code/object/class.rb
code-ruby-0.8.3 lib/code/object/class.rb
code-ruby-0.8.2 lib/code/object/class.rb
code-ruby-0.8.1 lib/code/object/class.rb
code-ruby-0.8.0 lib/code/object/class.rb