Class: CodeRay::WordList::CaseIgnoring
- Inherits:
-
CodeRay::WordList
- Object
- Hash
- CodeRay::WordList
- CodeRay::WordList::CaseIgnoring
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/coderay-1.1.3/lib/coderay/helpers/word_list.rb
Overview
A CaseIgnoring WordList is like a WordList, only that keys are compared case-insensitively (normalizing keys using downcase
).
Instance Method Summary collapse
Methods inherited from CodeRay::WordList
Methods inherited from Hash
#as_json, #assert_valid_keys, #compact_blank, #compact_blank!, #deep_dup, #deep_merge, #deep_merge!, #deep_stringify_keys, #deep_stringify_keys!, #deep_symbolize_keys, #deep_symbolize_keys!, #deep_transform_keys, #deep_transform_keys!, #deep_transform_values, #deep_transform_values!, #except, #except!, #extract!, #extractable_options?, from_trusted_xml, from_xml, #reverse_merge, #reverse_merge!, #slice!, #stringify_keys, #stringify_keys!, #symbolize_keys, #symbolize_keys!, #to_query, #to_xml, #with_indifferent_access
Constructor Details
This class inherits a constructor from CodeRay::WordList
Instance Method Details
#[](key) ⇒ Object
62 63 64 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/coderay-1.1.3/lib/coderay/helpers/word_list.rb', line 62 def [] key super key.downcase end |
#[]=(key, value) ⇒ Object
66 67 68 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/coderay-1.1.3/lib/coderay/helpers/word_list.rb', line 66 def []= key, value super key.downcase, value end |