# Class: String

Extend the String Class with validation methods

# Public Instance Methods

### is_alpha? ()

Return true if string contains only Alpha characters

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 122
    122:   def is_alpha?
    123:     Validate::ValidationUtils.isAlpha(self)
    124:   end

### is_alphanumeric? ()

Returns true if string is AlphaNumeric

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 132
    132:   def is_alphanumeric?
    133:     Validate::ValidationUtils.isAlphanumeric(self)
    134:   end

### is_blank? ()

Returns true if string is Blank. Similar to empty, but looks for whitespace entries.

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 153
    153:   def is_blank?
    154:     Validate::ValidationUtils.isBlank(self)
    155:   end

### is_email? ()

Returns true if string meets email address criteria

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 163
    163:   def is_email?
    164:     if /^([0-9a-zA-Z]+[-._+&amp;])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/.match(self)
    165:       return true
    166:     else
    167:       return false
    168:     end
    169:   end

### is_notblank? ()

Returns true if string is NOT Blank.

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 158
    158:   def is_notblank?
    159:     Validate::ValidationUtils.isNotBlank(self)
    160:   end

### is_numeric? ()

Returns true if string constains only Numeric characters

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 127
    127:   def is_numeric?
    128:     Validate::ValidationUtils.isNumeric(self)
    129:   end

### is_spaced_alpha? ()

Return true if string contains only Alpha characters

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 137
    137:   def is_spaced_alpha?
    138:     Validate::ValidationUtils.isAlphaSpace(self)
    139:   end

### is_spaced_alphanumeric? ()

Returns true if string is AlphaNumeric

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 147
    147:   def is_spaced_alphanumeric?
    148:     Validate::ValidationUtils.isAlphanumericSpace(self)
    149:   end

### is_spaced_numeric? ()

Returns true if string constains only Numeric characters

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 142
    142:   def is_spaced_numeric?
    143:     Validate::ValidationUtils.isNumericSpace(self)
    144:   end

### maxlength? (size)

Returns true if string meets maximum length

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 177
    177:   def maxlength?(size)
    178:     Validate::ValidationUtils.hasMaximumLength(self,size)
    179:   end

### minlength? (size)

Returns true if string meets minimum length

Show source...

         # File bbs/lib/rubyclass_extensions.rb, line 172
    172:   def minlength?(size)
    173:     Validate::ValidationUtils.hasMinimumLength(self,size)
    174:   end