Sha256: 5234735aae6ae3b0bb6718754c8abc9d894df5d6486f0b85baf0725e86d50644

Contents?: true

Size: 171 Bytes

Versions: 3

Compression:

Stored size: 171 Bytes

Contents

class Volt
  def self.root
    @root ||= File.expand_path(Dir.pwd)
  end
  
  def self.server?
    !ENV['CLIENT']
  end
  
  def self.client?
    !!ENV['CLIENT']
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
volt-0.2.7 lib/volt.rb
volt-0.2.5 lib/volt.rb
volt-0.2.4 lib/volt.rb