Class: FluentCommandBuilder::Tf::TEE2010::Print
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Print
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
-
#initialize(builder, item_spec) ⇒ Print
constructor
A new instance of Print.
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Print
Returns a new instance of Print.
1125 1126 1127 1128 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1125 def initialize(builder, item_spec) super builder @builder.append " print #{@builder.format item_spec}" end |
Instance Method Details
#version(version_spec) {|@builder| ... } ⇒ Object
1129 1130 1131 1132 1133 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1129 def version(version_spec) @builder.append " -version:#{@builder.format version_spec}" yield @builder if block_given? self end |