Sha256: 9c3417816d8cca42b9c76c640df6c3f274089e1833f789fc4af3c41446d33a72
Contents?: true
Size: 893 Bytes
Versions: 7
Compression:
Stored size: 893 Bytes
Contents
require 'volt/volt/environment' require 'volt/extra_core/extra_core' require 'volt/reactive/computation' require 'volt/reactive/dependency' require 'volt/config' if RUBY_PLATFORM == 'opal' else require 'volt/data_stores/data_store' end require 'volt/volt/users' module Volt @in_browser = if RUBY_PLATFORM == 'opal' `!!document && !window.OPAL_SPEC_PHANTOM` else false end class << self def root @root ||= File.expand_path(Dir.pwd) end attr_writer :root def server? !!ENV['SERVER'] end def client? !ENV['SERVER'] end def source_maps? !!ENV['MAPS'] end def env @env ||= Volt::Environment.new end def logger @logger ||= Logger.new(STDOUT) end attr_writer :logger def in_browser? @in_browser end end end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
volt-0.8.27.beta2 | lib/volt.rb |
volt-0.8.27.beta1 | lib/volt.rb |
volt-0.8.26.beta1 | lib/volt.rb |
volt-0.8.26 | lib/volt.rb |
volt-0.8.24 | lib/volt.rb |
volt-0.8.23 | lib/volt.rb |
volt-0.8.22 | lib/volt.rb |