class Kubes::Compiler::Strategy

Public Class Methods

new(options={}) click to toggle source
# File lib/kubes/compiler/strategy.rb, line 3
def initialize(options={})
  @options = options
  @path = options[:path]
end

Public Instance Methods

compile() click to toggle source
# File lib/kubes/compiler/strategy.rb, line 8
def compile
  result = Dispatcher.new(@options.merge(path: @path)).dispatch
  result.decorate!(:pre) # compile pre phase decoration
  result
end