module EnumTable
Constants
- VERSION
Public Class Methods
missing_tables_allowed()
click to toggle source
# File lib/enum_table.rb, line 15 def missing_tables_allowed missing_tables_allowances.push true end
missing_tables_allowed?()
click to toggle source
# File lib/enum_table.rb, line 23 def missing_tables_allowed? !missing_tables_allowances.empty? end
missing_tables_disallowed()
click to toggle source
# File lib/enum_table.rb, line 19 def missing_tables_disallowed missing_tables_allowances.pop end
reset()
click to toggle source
Reset our state. Intended for testing Enum Table.
# File lib/enum_table.rb, line 28 def reset Thread.current[:enum_table_missing_tables_allowed] = nil end
Private Class Methods
missing_tables_allowances()
click to toggle source
# File lib/enum_table.rb, line 34 def missing_tables_allowances Thread.current[:enum_table_missing_tables_allowed] ||= [] end