Class: Shapkeep::Wrapper
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Shapkeep::Wrapper
- Defined in:
- lib/shapkeep/wrapper.rb
Instance Attribute Summary collapse
-
#shapkeep ⇒ Object
readonly
Returns the value of attribute shapkeep.
Instance Method Summary collapse
- #eval(*args) ⇒ Object
- #eval_script(script_name, keys = [], args = []) ⇒ Object
-
#initialize(script_file, redis) ⇒ Wrapper
constructor
A new instance of Wrapper.
- #redis ⇒ Object
Constructor Details
Instance Attribute Details
#shapkeep ⇒ Object (readonly)
Returns the value of attribute shapkeep.
7 8 9 |
# File 'lib/shapkeep/wrapper.rb', line 7 def shapkeep @shapkeep end |
Instance Method Details
#eval(*args) ⇒ Object
14 15 16 |
# File 'lib/shapkeep/wrapper.rb', line 14 def eval(*args) __getobj__.eval(*args) end |
#eval_script(script_name, keys = [], args = []) ⇒ Object
18 19 20 |
# File 'lib/shapkeep/wrapper.rb', line 18 def eval_script(script_name, keys = [], args = []) shapkeep.eval(redis, script_name, keys, args) end |
#redis ⇒ Object
22 23 24 |
# File 'lib/shapkeep/wrapper.rb', line 22 def redis __getobj__ end |