class TwitterCldr::Parsers::SymbolTable
This is really just a thin layer on top of Hash. Nice to have it abstracted in case we have to add custom behavior.
Attributes
symbols[R]
Public Class Methods
new(symbols = {})
click to toggle source
# File lib/twitter_cldr/parsers/symbol_table.rb, line 15 def initialize(symbols = {}) @symbols = symbols end
Public Instance Methods
add(symbol, value)
click to toggle source
# File lib/twitter_cldr/parsers/symbol_table.rb, line 23 def add(symbol, value) symbols[symbol] = value end
fetch(symbol)
click to toggle source
# File lib/twitter_cldr/parsers/symbol_table.rb, line 19 def fetch(symbol) symbols.fetch(symbol) end