class TrueClass - activesupport-4.2.4 Documentation

# class TrueClass

### Public Instance Methods

blank?() click to toggle source

`true` is not blank:

    true.blank? # => false

@return [false]

    # File lib/active_support/core_ext/object/blank.rb, line 75
    def blank?
      false
    end

duplicable?() click to toggle source

`true` is not duplicable:

    true.duplicable? # => false
    true.dup         # => TypeError: can't dup TrueClass

    # File lib/active_support/core_ext/object/duplicable.rb, line 54
    def duplicable?
      false
    end

to_param() click to toggle source

Returns `self`.

    # File lib/active_support/core_ext/object/to_query.rb, line 25
    def to_param
      self
    end