module NinjaVan
Constants
- VERSION
Public Class Methods
is_blank?(object)
click to toggle source
# File lib/ninja_van.rb, line 21 def self.is_blank?(object) case object when NilClass, FalseClass return true when TrueClass, Numeric, Fixnum return false when Array, Hash return object.empty? when String return object.empty? || !object.match(/\A[[:space:]]*\z/).nil? else return object.respond_to?(:empty?) ? !!object.empty? : !object end end
setup() { |config| ... }
click to toggle source
# File lib/ninja_van.rb, line 15 def self.setup @config ||= NinjaVan::Config.new yield @config if block_given? @config end