Class: String

Inherits:
Object show all
Defined in:
lib/passive_support/core_ext/object/blank.rb,
lib/passive_support/core_ext/string/constantize.rb

Overview

:nodoc:

Direct Known Subclasses

PassiveSupport::ModelName

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


67
68
69
# File 'lib/passive_support/core_ext/object/blank.rb', line 67

def blank?
  self !~ /\S/
end

#constantizeObject



4
5
6
# File 'lib/passive_support/core_ext/string/constantize.rb', line 4

def constantize
  Extlib::Inflection.constantize(self)
end