Sha256: 865845cfaefbdb125ed7920538eac1b83b9006179505b8d8cfe8a8c6e75a406f

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

module Mirah
  module JVM
    module Types
      class InterfaceDefinition < TypeDefinition
        def initialize(name, node)
          super(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

5 entries across 5 versions & 1 rubygems

Version Path
mirah-0.0.12-java lib/mirah/jvm/types/interface_definition.rb
mirah-0.0.11-java lib/mirah/jvm/types/interface_definition.rb
mirah-0.0.10-java lib/mirah/jvm/types/interface_definition.rb
mirah-0.0.9-java lib/mirah/jvm/types/interface_definition.rb
mirah-0.0.8-java lib/mirah/jvm/types/interface_definition.rb