Sha256: 9132ba22eb1fef2750a9a02eef4568eaf4bde84360a6ff2e919c672a6cbb53b4
Contents?: true
Size: 737 Bytes
Versions: 3
Compression:
Stored size: 737 Bytes
Contents
require 'volt/volt/environment' require 'volt/extra_core/extra_core' require 'volt/reactive/computation' require 'volt/reactive/dependency' class Volt if RUBY_PLATFORM == 'opal' @@in_browser = `!!document && !window.OPAL_SPEC_PHANTOM` else @@in_browser = false end def self.root @root ||= File.expand_path(Dir.pwd) end def self.root=(val) @root = val end def self.server? !!ENV['SERVER'] end def self.client? !ENV['SERVER'] end def self.source_maps? !!ENV['MAPS'] end def self.env @env ||= Volt::Environment.new end def self.logger @logger ||= Logger.new end def self.logger=(val) @logger = val end def self.in_browser? @@in_browser end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
volt-0.8.2 | lib/volt.rb |
volt-0.8.1 | lib/volt.rb |
volt-0.8.0 | lib/volt.rb |