Method: GitModel::Index#attr_index
- Defined in:
- lib/gitmodel/index.rb
#attr_index(attr) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/gitmodel/index.rb', line 20 def attr_index(attr) self.load unless @indexes unless @indexes # this is just so that we can stub self.load in tests nil else @indexes[attr.to_s] || {} end end |