Class: NoSE::GroupDSL

Inherits:
Object show all
Defined in:
lib/nose/workload.rb

Overview

A helper class for DSL creation to allow groups of statements

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGroupDSL

Returns a new instance of GroupDSL.



230
231
232
# File 'lib/nose/workload.rb', line 230

def initialize
  @statements = []
end

Instance Attribute Details

#statementsObject (readonly)

Returns the value of attribute statements.



228
229
230
# File 'lib/nose/workload.rb', line 228

def statements
  @statements
end

Instance Method Details

#Q(statement) ⇒ void

This method returns an undefined value.

Track a new statement to be added



238
239
240
# File 'lib/nose/workload.rb', line 238

def Q(statement)
  @statements << statement
end