Class: Object

Inherits:
BasicObject
Defined in:
lib/transparent_git/ext.rb,
lib/transparent_git/ext.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/transparent_git/ext.rb', line 24

def blank?
  to_s.strip == ''
end

#klassObject



40
41
42
# File 'lib/transparent_git/ext.rb', line 40

def klass
  self.class
end

#present?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/transparent_git/ext.rb', line 27

def present?
  !blank?
end