Class: FluentCommandBuilder::SevenZip::V92::Bench
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::SevenZip::V92::Bench
- Defined in:
- lib/fluent_command_builder/command_builders/sevenzip_92.rb
Instance Method Summary collapse
-
#initialize(builder, number_of_iterations) ⇒ Bench
constructor
A new instance of Bench.
- #md(n) {|@builder| ... } ⇒ Object
- #mm(method) {|@builder| ... } ⇒ Object
- #mmt(n) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, number_of_iterations) ⇒ Bench
Returns a new instance of Bench.
118 119 120 121 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 118 def initialize(builder, number_of_iterations) super builder @builder.append " b #{@builder.format number_of_iterations}" end |
Instance Method Details
#md(n) {|@builder| ... } ⇒ Object
127 128 129 130 131 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 127 def md(n) @builder.append " -md#{@builder.format n}" yield @builder if block_given? self end |
#mm(method) {|@builder| ... } ⇒ Object
132 133 134 135 136 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 132 def mm(method) @builder.append " -mm=#{@builder.format method}" yield @builder if block_given? self end |
#mmt(n) {|@builder| ... } ⇒ Object
122 123 124 125 126 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 122 def mmt(n) @builder.append " -mmt#{@builder.format n}" yield @builder if block_given? self end |