Sha256: 871baa4bd498ffa013ef2146dc7889691666f3dd67ae321a72304e9881a093d8

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

module K4compiler

  class Base

    # @return [Hash]
    def self.options
      return {}
    end

    def initialize(config)
      @config_ = config
    end

    # @return [K4compiler::Config]
    def config
      return @config_
    end

    # compile
    def compile
      raise NotImplementedError.new("Compile method implement in child classes.")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
k4compiler-0.0.1 lib/k4compiler/compiler/base.rb