class Interscript::Compiler

An Interscript compiler interface

Attributes

code[RW]

Public Class Methods

call(map, **kwargs) click to toggle source
# File lib/interscript/compiler.rb, line 5
def self.call(map, **kwargs)
  if String === map
    map = Interscript::DSL.parse(map)
  end
  compiler = new
  compiler.compile(map, **kwargs)
  compiler
end

Public Instance Methods

call() click to toggle source

Execute a map

# File lib/interscript/compiler.rb, line 19
def call
  raise NotImplementedError, "Call class on #{self.class} is not implemented"
end
compile(map) click to toggle source
# File lib/interscript/compiler.rb, line 14
def compile(map)
  raise NotImplementedError, "Compile method on #{self.class} is not implemented"
end