Class: NilClass
Instance Method Summary collapse
- #blank? ⇒ Boolean
- #empty? ⇒ Boolean
- #hm_mdy ⇒ Object
- #hm_mdy_full ⇒ Object
- #hm_mdy_long ⇒ Object
- #hms_mdy ⇒ Object
-
#id ⇒ Object
Ruby default: nil.id == 4 (now deprecated, but still present in 1.8) can cause unexpected results when using id from nil Sequel results so we’ll raise an error instead, effectively undefining ‘id’ method.
- #length ⇒ Object
- #mdy ⇒ Object
- #mdy_hm ⇒ Object
- #mdy_hm_full ⇒ Object
- #mdy_hm_long ⇒ Object
- #mdy_hms ⇒ Object
- #size ⇒ Object
- #sql ⇒ Object
- #to_dollars ⇒ Object
- #to_dollars_cents ⇒ Object
- #unless_blank(blank_value) ⇒ Object
- #ymd_hm ⇒ Object
- #ymd_hms ⇒ Object
- #zero? ⇒ Boolean
Instance Method Details
#blank? ⇒ Boolean
551 |
# File 'lib/kiss/ext/core.rb', line 551 def blank?; true; end |
#empty? ⇒ Boolean
550 |
# File 'lib/kiss/ext/core.rb', line 550 def empty?; true; end |
#hm_mdy ⇒ Object
536 |
# File 'lib/kiss/ext/core.rb', line 536 def hm_mdy; ''; end |
#hm_mdy_full ⇒ Object
538 |
# File 'lib/kiss/ext/core.rb', line 538 def hm_mdy_full; ''; end |
#hm_mdy_long ⇒ Object
539 |
# File 'lib/kiss/ext/core.rb', line 539 def hm_mdy_long; ''; end |
#hms_mdy ⇒ Object
537 |
# File 'lib/kiss/ext/core.rb', line 537 def hms_mdy; ''; end |
#id ⇒ Object
Ruby default: nil.id == 4 (now deprecated, but still present in 1.8) can cause unexpected results when using id from nil Sequel results so we’ll raise an error instead, effectively undefining ‘id’ method
559 560 561 |
# File 'lib/kiss/ext/core.rb', line 559 def id raise NoMethodError, "undefined method `id' for nil:NilClass" end |
#length ⇒ Object
548 |
# File 'lib/kiss/ext/core.rb', line 548 def length; 0; end |
#mdy ⇒ Object
531 |
# File 'lib/kiss/ext/core.rb', line 531 def mdy; ''; end |
#mdy_hm ⇒ Object
532 |
# File 'lib/kiss/ext/core.rb', line 532 def mdy_hm; ''; end |
#mdy_hm_full ⇒ Object
534 |
# File 'lib/kiss/ext/core.rb', line 534 def mdy_hm_full; ''; end |
#mdy_hm_long ⇒ Object
535 |
# File 'lib/kiss/ext/core.rb', line 535 def mdy_hm_long; ''; end |
#mdy_hms ⇒ Object
533 |
# File 'lib/kiss/ext/core.rb', line 533 def mdy_hms; ''; end |
#size ⇒ Object
547 |
# File 'lib/kiss/ext/core.rb', line 547 def size; 0; end |
#sql ⇒ Object
542 |
# File 'lib/kiss/ext/core.rb', line 542 def sql; ''; end |
#to_dollars ⇒ Object
544 |
# File 'lib/kiss/ext/core.rb', line 544 def to_dollars; ''; end |
#to_dollars_cents ⇒ Object
545 |
# File 'lib/kiss/ext/core.rb', line 545 def to_dollars_cents; ''; end |
#unless_blank(blank_value) ⇒ Object
554 |
# File 'lib/kiss/ext/core.rb', line 554 def unless_blank(blank_value); blank_value; end |
#ymd_hm ⇒ Object
540 |
# File 'lib/kiss/ext/core.rb', line 540 def ymd_hm; ''; end |
#ymd_hms ⇒ Object
541 |
# File 'lib/kiss/ext/core.rb', line 541 def ymd_hms; ''; end |
#zero? ⇒ Boolean
552 |
# File 'lib/kiss/ext/core.rb', line 552 def zero?; true; end |