Sha256: 36644645bd5fac73050ec1957ee9ba3dbad03ae5afd136edf711f3dc0d1571e4
Contents?: true
Size: 1.55 KB
Versions: 9
Compression:
Stored size: 1.55 KB
Contents
# encoding: UTF-8 # # Author: Stefano Harding <riddopic@gmail.com> # License: Apache License, Version 2.0 # Copyright: (C) 2014-2015 Stefano Harding # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Add #blank? method to TrueClass class. # class TrueClass # True is never blank. # # @example # true.blank? # => false # # @return [FalseClass] # # @api public def blank? false end # Since TrueClass is immutable it cannot be duplicated. # For this reason #try_dup returns +self+. # # true.dup! #=> true # def dup! ; self ; end def dup? ; false ; end def clone? ; false ; end end # Add #blank? method to FalseClass class. # class FalseClass # False is always blank. # # @example # false.blank? # => true # # @return [TrueClass] # # @api public def blank? true end # Since FalseClass is immutable it cannot be duplicated. # For this reason #try_dup returns +self+. # # false.dup! #=> false # def dup! ; self ; end def dup? ; false ; end def clone? ; false ; end end
Version data entries
9 entries across 9 versions & 1 rubygems