Class: GlobalID::Locator::BlockLocator
- Inherits:
-
Object
- Object
- GlobalID::Locator::BlockLocator
- Defined in:
- lib/global_id/locator.rb
Instance Method Summary collapse
-
#initialize(block) ⇒ BlockLocator
constructor
A new instance of BlockLocator.
- #locate(gid) ⇒ Object
Constructor Details
#initialize(block) ⇒ BlockLocator
84 85 86 |
# File 'lib/global_id/locator.rb', line 84 def initialize(block) @locator = block end |
Instance Method Details
#locate(gid) ⇒ Object
88 89 90 |
# File 'lib/global_id/locator.rb', line 88 def locate(gid) @locator.call(gid) end |