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
-
EMPTY =
# File 'activerecord/lib/active_record/key.rb', line 338[].freeze
Class Method Summary
Instance Attribute Summary
Instance Method Summary
- #_value_of(record, normalizers = nil)
- #all? ⇒ Boolean
- #any? ⇒ Boolean
- #each(&block)
- #each_with_index
- #include?(column) ⇒ Boolean
- #map
- #map_value
- #none? ⇒ Boolean
-
#subset?(other) ⇒ Boolean
The empty set is a subset of every key.
- #zip(other)
Single - Inherited
| #_value_of, #all?, #any?, #arel_columns, #cast, #each, #each_with_index, #expects_multiple_ids?, #include?, | |
| #inferred_id | Only composite keys have a single id to infer. |
| #inferred_key, #map, #map_value, #none?, #resolve_aliases, #subset?, #value_of, #where_clauses, #where_hash, #zip | |
Constructor Details
.new ⇒ None
# 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
# File 'activerecord/lib/active_record/key.rb', line 363
def all?(...) = EMPTY.all?(...)
#any? ⇒ Boolean
# 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
# 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
# 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.
# File 'activerecord/lib/active_record/key.rb', line 354
def subset?(other) true end