Class: Benny::DSL::Definition::BenchmarkEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/benny/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



15
16
17
# File 'lib/benny/dsl.rb', line 15

def block
  @block
end

#definitionObject (readonly)

Returns the value of attribute definition.



15
16
17
# File 'lib/benny/dsl.rb', line 15

def definition
  @definition
end

#nameObject (readonly)

Returns the value of attribute name.



15
16
17
# File 'lib/benny/dsl.rb', line 15

def name
  @name
end