Sha256: b9fec49b36e01814337b4c1d837bf51272aa0f1717fd1f232a570649e64bc7a5
Contents?: true
Size: 604 Bytes
Versions: 14
Compression:
Stored size: 604 Bytes
Contents
class Jax::Application::Configuration attr_accessor :view_paths, :root def initialize @view_paths = ['app/views'] if defined?(JAX_ROOT) @root = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? Pathname.new(JAX_ROOT).expand_path : Pathname.new(JAX_ROOT).realpath else @root = nil end end def routes if !@routes @routes = Jax::Routes.new Jax::Routes.load! end @routes end def shader_load_paths @shader_load_paths ||= [ File.expand_path('../../../builtin/shaders', File.dirname(__FILE__)), "app/shaders" ] end end
Version data entries
14 entries across 14 versions & 1 rubygems