Sha256: 99df48e140c0e8859e8ac66dd7324dc929c30fb1afb6128bf8acda7291a57a74
Contents?: true
Size: 656 Bytes
Versions: 5
Compression:
Stored size: 656 Bytes
Contents
module BPM class PluginContext attr_reader :moduleId attr_reader :package def initialize(pkg, module_id=nil) @generating_asset = BPM::GeneratedAsset.generating_asset @package = pkg.as_json @moduleId = module_id end def minify_as_js @generating_asset ? @generating_asset.minify_as_js : "CTX.minify=function(body) { return body; }" end def settings @generating_asset ? @generating_asset.build_settings : {} end def as_json { :package => @package, :moduleId => @moduleId, :settings => settings } end def to_json as_json.to_json end end end
Version data entries
5 entries across 5 versions & 1 rubygems