Sha256: add037a3e44ada75393beb8dad76c552298d6e50d3118d3c7cb377f550ba6334

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

module RaaP
  module Value
    # FIXME: consider self_types
    # HINT: intersection?
    class Module
      attr_reader :type

      def initialize(type)
        @type = type
        const = ::Object.const_get(type.name.absolute!.to_s)
        extend(const)
      end

      def inspect = "#<module #{@type}>"
      def class = Value::Module
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
raap-0.3.0 lib/raap/value/module.rb