Class: Roundhouse::Script::Configuration
- Inherits:
-
Object
- Object
- Roundhouse::Script::Configuration
- Defined in:
- lib/roundhouse/script.rb
Instance Attribute Summary collapse
-
#instrumentation ⇒ Object
readonly
Returns the value of attribute instrumentation.
Instance Method Summary collapse
-
#initialize(&blk) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(&blk) ⇒ Configuration
Returns a new instance of Configuration.
31 32 33 |
# File 'lib/roundhouse/script.rb', line 31 def initialize(&blk) @instrumentation = blk || proc { |script_name, runtime, eval_type| Roundhouse.logger.info "REDIS LUA [#{eval_type}]: #{script_name} #{runtime}" } end |
Instance Attribute Details
#instrumentation ⇒ Object (readonly)
Returns the value of attribute instrumentation.
29 30 31 |
# File 'lib/roundhouse/script.rb', line 29 def instrumentation @instrumentation end |