Class: Benny::DSL::Definition::BenchmarkEntry
- Inherits:
-
Object
- Object
- Benny::DSL::Definition::BenchmarkEntry
- Defined in:
- lib/benny/dsl.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(definition, name, &block) ⇒ BenchmarkEntry
constructor
A new instance of BenchmarkEntry.
Constructor Details
#initialize(definition, name, &block) ⇒ BenchmarkEntry
Returns a new instance of BenchmarkEntry.
17 18 19 20 21 |
# File 'lib/benny/dsl.rb', line 17 def initialize(definition, name, &block) @name = name @block = block @definition = definition end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
15 16 17 |
# File 'lib/benny/dsl.rb', line 15 def block @block end |
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
15 16 17 |
# File 'lib/benny/dsl.rb', line 15 def definition @definition end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
15 16 17 |
# File 'lib/benny/dsl.rb', line 15 def name @name end |