Sha256: 6ad2734f942bf89a08077b8aca257830dda3d20db72b252d28fc142c104ba180

Contents?: true

Size: 437 Bytes

Versions: 4

Compression:

Stored size: 437 Bytes

Contents

require 'volt/volt/environment'
require 'volt/extra_core/extra_core'
require 'volt/reactive/reactive_value'

class Volt
  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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
volt-0.6.5 lib/volt.rb
volt-0.6.4 lib/volt.rb
volt-0.6.3 lib/volt.rb
volt-0.6.2 lib/volt.rb