Class: Madison::Map
- Inherits:
-
Object
- Object
- Madison::Map
- Defined in:
- lib/madison/map.rb
Instance Attribute Summary collapse
-
#states ⇒ Object
Returns the value of attribute states.
Instance Method Summary collapse
Instance Attribute Details
#states ⇒ Object
Returns the value of attribute states.
5 6 7 |
# File 'lib/madison/map.rb', line 5 def states @states end |
Instance Method Details
#get_abbrev(name) ⇒ Object
13 14 15 16 |
# File 'lib/madison/map.rb', line 13 def get_abbrev(name) validate_arg(name) state_abbrevs[name.downcase] end |
#get_name(abbrev) ⇒ Object
18 19 20 21 |
# File 'lib/madison/map.rb', line 18 def get_name(abbrev) validate_arg(abbrev) state_names[abbrev.downcase] end |