123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::Key::None

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Single, Key
Instance Chain:
self, Single, Key
Inherits: ActiveRecord::Key::Single
Defined in: activerecord/lib/active_record/key.rb

Constant Summary

Class Method Summary

Single - Inherited

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new ⇒ None

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 340

def initialize
  @name = nil
  @columns = EMPTY
end

Instance Attribute Details

#present? ⇒ Boolean (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 345

def present?
  false
end

Instance Method Details

#_value_of(record, normalizers = nil)

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 378

def _value_of(record, normalizers = nil)
  nil
end

#all? ⇒ Boolean

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 363

def all?(...) = EMPTY.all?(...)

#any? ⇒ Boolean

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 364

def any?(...) = EMPTY.any?(...)

#each(&block)

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 358

def each(&block)
  return enum_for(:each) unless block
  self
end

#each_with_index

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 367

def each_with_index(&) = EMPTY.each_with_index(&)

#include?(column) ⇒ Boolean

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 349

def include?(column)
  false
end

#map

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 366

def map(...) = EMPTY.map(...)

#map_value

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 373

def map_value
  return enum_for(:map_value) unless block_given?
  nil
end

#none? ⇒ Boolean

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 365

def none?(...) = EMPTY.none?(...)

#subset?(other) ⇒ Boolean

The empty set is a subset of every key.

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 354

def subset?(other)
  true
end

#zip(other)

[ GitHub ]

  
# File 'activerecord/lib/active_record/key.rb', line 369

def zip(other, &)
  EMPTY.zip(other.to_a, &)
end