Class: String

Inherits:
Object show all
Defined in:
lib/xiki/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#any?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/xiki/core_ext.rb', line 28

def any?
  ! empty?
end

#blank?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/xiki/core_ext.rb', line 20

def blank?
  empty?
end

#present?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/xiki/core_ext.rb', line 24

def present?
  ! empty?
end

#unindentObject



32
33
34
# File 'lib/xiki/core_ext.rb', line 32

def unindent
  TextUtil.unindent(to_s)
end