Sha256: 9e9f0e417076f26e6523d1e25231ad4b5ba1188cd1373cfcf1ebad82cf368e2f

Contents?: true

Size: 427 Bytes

Versions: 4

Compression:

Stored size: 427 Bytes

Contents

module Mirah
  module JVM
    module Types
      class InterfaceDefinition < TypeDefinition
        def initialize(types, scope, name, node)
          super(types, scope, name, node)
        end

        def define(builder)
          class_name = @name.tr('.', '/')
          @type ||= builder.public_interface(class_name, *interfaces)
        end

        def interface?
          true
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mirah-0.1.2-java lib/mirah/jvm/types/interface_definition.rb
mirah-0.1.1-java lib/mirah/jvm/types/interface_definition.rb
mirah-0.1.0-java lib/mirah/jvm/types/interface_definition.rb
mirah-0.1.0.pre-java lib/mirah/jvm/types/interface_definition.rb