Sha256: 91c1f50942fe65db685dafdb02c32453d794f131b4eee7deb9caa7b9ea163e41
Contents?: true
Size: 609 Bytes
Versions: 15
Compression:
Stored size: 609 Bytes
Contents
require File.expand_path("../all", File.dirname(__FILE__)) module Jax module Generators class LightGenerator < Jax::Generators::NamedBase argument :type def light_type case type when 'spot', 'directional', 'point' type.upcase + "_LIGHT" else raise "Invalid light type. Expected one of ['spot', 'directional', 'point']" end end def create_light_source template "light_source.resource.erb", File.join('app/assets/jax/resources/light_sources', "#{file_name}.resource") end end end end
Version data entries
15 entries across 15 versions & 1 rubygems