Class: I18n::Inflector::HSet

Inherits:
Set
  • Object
show all
Defined in:
lib/i18n-inflector/hset.rb

Overview

This class keeps sets of data

Instance Method Summary collapse

Instance Method Details

#[](k) ⇒ Boolean

This method performs a fast check if an element exists in a set.

Returns:

  • (Boolean)


21
22
23
# File 'lib/i18n-inflector/hset.rb', line 21

def [](k)
  @hash[k] == true
end