Class: NilClass

Inherits:
Object show all
Defined in:
lib/kiss/ext/core.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


551
# File 'lib/kiss/ext/core.rb', line 551

def blank?; true; end

#empty?Boolean

Returns:

  • (Boolean)


550
# File 'lib/kiss/ext/core.rb', line 550

def empty?; true; end

#hm_mdyObject



536
# File 'lib/kiss/ext/core.rb', line 536

def hm_mdy; ''; end

#hm_mdy_fullObject



538
# File 'lib/kiss/ext/core.rb', line 538

def hm_mdy_full; ''; end

#hm_mdy_longObject



539
# File 'lib/kiss/ext/core.rb', line 539

def hm_mdy_long; ''; end

#hms_mdyObject



537
# File 'lib/kiss/ext/core.rb', line 537

def hms_mdy; ''; end

#idObject

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

Raises:

  • (NoMethodError)


559
560
561
# File 'lib/kiss/ext/core.rb', line 559

def id
  raise NoMethodError, "undefined method `id' for nil:NilClass"
end

#lengthObject



548
# File 'lib/kiss/ext/core.rb', line 548

def length; 0; end

#mdyObject



531
# File 'lib/kiss/ext/core.rb', line 531

def mdy; ''; end

#mdy_hmObject



532
# File 'lib/kiss/ext/core.rb', line 532

def mdy_hm; ''; end

#mdy_hm_fullObject



534
# File 'lib/kiss/ext/core.rb', line 534

def mdy_hm_full; ''; end

#mdy_hm_longObject



535
# File 'lib/kiss/ext/core.rb', line 535

def mdy_hm_long; ''; end

#mdy_hmsObject



533
# File 'lib/kiss/ext/core.rb', line 533

def mdy_hms; ''; end

#sizeObject



547
# File 'lib/kiss/ext/core.rb', line 547

def size; 0; end

#sqlObject



542
# File 'lib/kiss/ext/core.rb', line 542

def sql; ''; end

#to_dollarsObject



544
# File 'lib/kiss/ext/core.rb', line 544

def to_dollars; ''; end

#to_dollars_centsObject



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_hmObject



540
# File 'lib/kiss/ext/core.rb', line 540

def ymd_hm; ''; end

#ymd_hmsObject



541
# File 'lib/kiss/ext/core.rb', line 541

def ymd_hms; ''; end

#zero?Boolean

Returns:

  • (Boolean)


552
# File 'lib/kiss/ext/core.rb', line 552

def zero?; true; end