Sha256: 527c2c468dc757c97db976da73946a6c71e518f362c74458d3cfd0f39439a40d
Contents?: true
Size: 486 Bytes
Versions: 3
Compression:
Stored size: 486 Bytes
Contents
module Arcade module Support module Object # this is the rails method def present? !blank? end # File activesupport/lib/active_support/core_ext/object/blank.rb, line 46 def presence self if present? end # File activesupport/lib/active_support/core_ext/object/blank.rb, line 19 def blank? respond_to?(:empty?) ? !!empty? : !self end end end end Object.include Arcade::Support::Object
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arcadedb-0.5.0 | lib/arcade/support/object.rb |
arcadedb-0.4 | lib/support/object.rb |
arcadedb-0.3.3 | lib/support/object.rb |