Sha256: c38879a68445f4916b0441bb219ee1b621cb611c1f746f0687ab5d38921a8bcd

Contents?: true

Size: 950 Bytes

Versions: 3

Compression:

Stored size: 950 Bytes

Contents

# encoding: UTF-8
require 'codemodels'

module CodeModels

module Js

EXTENSION = 'js'

def self.handle_models_in_dir(src,error_handler=nil,model_handler)
	CodeModels::ModelBuilding.handle_models_in_dir(src,EXTENSION,error_handler,model_handler) do |src|
		root = parse_file(src)
		CodeModels::Serialization.rgenobject_to_model(root)
	end
end

def self.generate_models_in_dir(src,dest,model_ext="#{EXTENSION}.lm",max_nesting=500,error_handler=nil)
	CodeModels::ModelBuilding.generate_models_in_dir(src,dest,EXTENSION,model_ext,max_nesting,error_handler) do |src|
		root = parse_file(src)
		CodeModels::Serialization.rgenobject_to_model(root)
	end
end

def self.generate_model_per_file(src,dest,model_ext="#{EXTENSION}.lm",max_nesting=500,error_handler=nil)
	CodeModels::ModelBuilding.generate_model_per_file(src,dest,max_nesting,error_handler) do |src|
		root = parse_file(src)
		CodeModels::Serialization.rgenobject_to_model(root)
	end
end

end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
codemodels-js-0.1.1-java lib/codemodels/js/model_building.rb
codemodels-js-0.1.0-java lib/codemodels/js/model_building.rb
codemodels-js-0.1.0 lib/codemodels/js/model_building.rb