module KongSchema::Functional

Public Instance Methods

blank?(object) click to toggle source
# File lib/kong_schema/functional.rb, line 3
def blank?(object)
  object.nil? || object.empty?
end
try(recv, meth) click to toggle source
# File lib/kong_schema/functional.rb, line 7
def try(recv, meth)
  if recv.nil?
    nil
  else
    recv.send(meth)
  end
end