Class: Textus::Application::Reads::Where
- Inherits:
-
Object
- Object
- Textus::Application::Reads::Where
- Defined in:
- lib/textus/application/reads/where.rb
Instance Method Summary collapse
- #call(key) ⇒ Object
-
#initialize(ctx:) ⇒ Where
constructor
A new instance of Where.
Constructor Details
#initialize(ctx:) ⇒ Where
Returns a new instance of Where.
5 6 7 |
# File 'lib/textus/application/reads/where.rb', line 5 def initialize(ctx:) @ctx = ctx end |
Instance Method Details
#call(key) ⇒ Object
9 10 11 |
# File 'lib/textus/application/reads/where.rb', line 9 def call(key) @ctx.store.reader.where(key) end |