lib/env/variables.rb in env-0.1.2 vs lib/env/variables.rb in env-0.2.0
- old
+ new
@@ -72,10 +72,22 @@
[]
end
end
#
+ # The default timezone.
+ #
+ # @return [String, nil]
+ # The timezone name.
+ #
+ # @since 0.2.0
+ #
+ def timezone
+ env['TZ']
+ end
+
+ #
# The number of columns in the terminal.
#
# @return [Integer]
# The number of columns.
#
@@ -139,9 +151,21 @@
# @return [String, nil]
# The name of the browser program.
#
def browser
env_hash['BROWSER']
+ end
+
+ #
+ # Determines whether optional Debugging was enabled.
+ #
+ # @return [Boolean]
+ # Specifies whether the `DEBUG` variable was specified.
+ #
+ # @since 0.2.0
+ #
+ def debug?
+ true if env_hash['DEBUG']
end
protected
#