class StringInquirer
Ruby on Rails 3.0.20
Since v2.2.3Wrapping a string in this class gives you a prettier way to test for equality. The value returned by Rails.env is wrapped in a StringInquirer object so instead of calling this:
Rails.env == "production"
you can call this:
Rails.env.production?
Inherits from
Methods (defined here)
Methods (inherited)
From String (34)
- # acts_like_string?
- # at
- # camelcase
- # camelize
- # classify
- # constantize
- # dasherize
- # demodulize
- # encoding_aware?
- # exclude?
- # first
- # foreign_key
- # from
- # html_safe
- # humanize
- # is_utf8?
- # last
- # mb_chars
- # ord
- # parameterize
- # pluralize
- # singularize
- # squish
- # squish!
- # strip_heredoc
- # tableize
- # titlecase
- # titleize
- # to
- # to_date
- # to_datetime
- # to_time
- # truncate
- # underscore
From Object (26)
- # acts_like?
- # app
- # blank?
- # controller
- # create
- # create_fixtures
- # destroy
- # duplicable?
- # edit
- # helper
- # html_safe?
- # index
- # instance_variable_names
- # new
- # new_session
- # presence
- # present?
- # reload!
- # returning
- # show
- # to_param
- # to_query
- # try
- # unescape
- # update
- # with_options