Sha256: bb72c65bfd66361adf33a608ae55497773498a4a83eec09d05ccb7b861813de7

Contents?: true

Size: 274 Bytes

Versions: 75

Compression:

Stored size: 274 Bytes

Contents

# encoding: utf-8

# Numeric
class Numeric
  # return is ascii or not
  #
  # ==== Examples
  #
  # 1,127,128 case
  #
  #   1.is_ascii? # => return true
  #   127.is_ascii? # => return true
  #   128.is_ascii? # => return false
  #
  def is_ascii?
    self < 128
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
tbpgr_utils-0.0.150 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.149 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.148 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.147 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.146 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.145 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.144 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.143 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.142 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.141 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.140 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.139 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.138 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.137 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.136 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.135 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.134 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.133 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.132 lib/open_classes/numeric/is_ascii.rb
tbpgr_utils-0.0.131 lib/open_classes/numeric/is_ascii.rb