module Stove
Constants
- UNSET_VALUE
A constant to represent an unset value.
nil
is too generic and doesn't allow users to specify a value asnil
. Using this constant, we can safely createset_or_return
-style methods.@return [Object]
- USER_AGENT
The User-Agent to use for HTTP requests
@return [String]
- VERSION
Public Class Methods
log_level()
click to toggle source
Get the current log level.
@return [Symbol]
# File lib/stove.rb, line 83 def log_level Stove::Log.level end
log_level=(lev)
click to toggle source
Set the log level.
@example Set the log level to :info
Stove.log_level = :info
@param [#to_sym] level
the log level to set
# File lib/stove.rb, line 74 def log_level=(lev) Stove::Log.level = lev.to_sym end
root()
click to toggle source
The source root of the Stove
gem. This is useful when requiring files that are relative to the root of the project.
@return [Pathname]
# File lib/stove.rb, line 61 def root @root ||= Pathname.new(File.expand_path('../../', __FILE__)) end