lib/inesita.rb in inesita-0.3.1 vs lib/inesita.rb in inesita-0.3.2

- old
+ new

@@ -16,15 +16,19 @@ require 'inesita/server' module Inesita module_function - def env - @env || :development + def dist! + @env = :dist end - def env=(env) - @env = env + def dev? + (@env || :dev) == :dev + end + + def dist? + @env == :dist end def assets_code @assets_code end