Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/zucker/not.rb,
lib/zucker/blank.rb,
lib/zucker/mcopy.rb,
lib/zucker/aliases.rb
Defined Under Namespace
Classes: NotClass
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
5 6 7 |
# File 'lib/zucker/blank.rb', line 5 def blank? if respond_to? :empty? then empty? else !self end end |
#mcopy ⇒ Object
5 6 7 |
# File 'lib/zucker/mcopy.rb', line 5 def mcopy Marshal.load Marshal.dump self end |
#present? ⇒ Boolean
9 10 11 |
# File 'lib/zucker/blank.rb', line 9 def present? !blank? end |