Module: DataProvider::Base::ProxyMethods
- Defined in:
- lib/data_provider/base.rb
Overview
both instance- class-level
Instance Method Summary collapse
- #fallback_provider? ⇒ Boolean
- #give!(*args) ⇒ Object (also: #add_scope!, #add_data!)
- #given(*args) ⇒ Object (also: #get_data)
- #got?(*args) ⇒ Boolean (also: #has_data?)
- #has_provider?(*args) ⇒ Boolean
- #has_providers_with_scope?(*args) ⇒ Boolean
- #provider(*args, &block) ⇒ Object
- #provider_identifiers(*args) ⇒ Object
- #provider_missing(*args, &block) ⇒ Object
- #provides(*args) ⇒ Object
- #take(id, opts = {}) ⇒ Object
- #try_take(id, opts = {}) ⇒ Object
Instance Method Details
#fallback_provider? ⇒ Boolean
40 41 42 |
# File 'lib/data_provider/base.rb', line 40 def fallback_provider? dpc.fallback_provider? end |
#give!(*args) ⇒ Object Also known as: add_scope!, add_data!
68 69 70 71 |
# File 'lib/data_provider/base.rb', line 68 def give! *args dpc.give! *args return self end |
#given(*args) ⇒ Object Also known as: get_data
62 63 64 |
# File 'lib/data_provider/base.rb', line 62 def given *args dpc.given *args end |
#got?(*args) ⇒ Boolean Also known as: has_data?
56 57 58 |
# File 'lib/data_provider/base.rb', line 56 def got?(*args) dpc.got?(*args) end |
#has_provider?(*args) ⇒ Boolean
32 33 34 |
# File 'lib/data_provider/base.rb', line 32 def has_provider? *args dpc.has_provider? *args end |
#has_providers_with_scope?(*args) ⇒ Boolean
36 37 38 |
# File 'lib/data_provider/base.rb', line 36 def has_providers_with_scope?(*args) dpc.has_providers_with_scope?(*args) end |
#provider(*args, &block) ⇒ Object
28 29 30 |
# File 'lib/data_provider/base.rb', line 28 def provider *args, &block dpc.provider *args, &block end |
#provider_identifiers(*args) ⇒ Object
24 25 26 |
# File 'lib/data_provider/base.rb', line 24 def provider_identifiers *args dpc.provider_identifiers *args end |
#provider_missing(*args, &block) ⇒ Object
44 45 46 |
# File 'lib/data_provider/base.rb', line 44 def provider_missing *args, &block dpc.provider_missing *args, &block end |
#provides(*args) ⇒ Object
18 19 20 21 22 |
# File 'lib/data_provider/base.rb', line 18 def provides *args return dpc.provides if args.length == 0 dpc.provides *args return self end |
#take(id, opts = {}) ⇒ Object
48 49 50 |
# File 'lib/data_provider/base.rb', line 48 def take(id, opts = {}) dpc.take(id, opts.merge(:scope => self)) end |
#try_take(id, opts = {}) ⇒ Object
52 53 54 |
# File 'lib/data_provider/base.rb', line 52 def try_take(id, opts = {}) dpc.try_take(id, opts.merge(:scope => self)) end |