Class: NoSE::GroupDSL
Overview
A helper class for DSL creation to allow groups of statements
Instance Attribute Summary collapse
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
Instance Method Summary collapse
-
#initialize ⇒ GroupDSL
constructor
A new instance of GroupDSL.
-
#Q(statement) ⇒ void
Track a new statement to be added.
Constructor Details
#initialize ⇒ GroupDSL
Returns a new instance of GroupDSL.
230 231 232 |
# File 'lib/nose/workload.rb', line 230 def initialize @statements = [] end |
Instance Attribute Details
#statements ⇒ Object (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 |