Sha256: 134c70798c1ca4e6452c6a0ca4335c030dcb55fb50111ff17018e37474728a18

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 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.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

2 entries across 2 versions & 1 rubygems

Version Path
volt-0.6.1 lib/volt.rb
volt-0.6.0 lib/volt.rb