class Object

Public Instance Methods

blank?() click to toggle source

Returns true if object is empty or false

@return [Boolean]

# File lib/olelo/extensions.rb, line 145
def blank?
  respond_to?(:empty?) ? empty? : !self
end
html_safe?() click to toggle source
# File lib/olelo/html_safe.rb, line 2
def html_safe?
  false
end
try(name, *args) click to toggle source

Try to call method if it exists or return nil

@param [String, Symbol] name Method name @param args Method arguments @return Method result or nil

# File lib/olelo/extensions.rb, line 155
def try(name, *args)
  respond_to?(name) ? send(name, *args) : nil
end