Method: OpenC3::FileInterface#set_option
- Defined in:
- lib/openc3/interfaces/file_interface.rb
#set_option(option_name, option_values) ⇒ Object
Supported Options LABEL - Label to add to written files EXTENSION - Extension to add to written files (see Interface#set_option)
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/openc3/interfaces/file_interface.rb', line 168 def set_option(option_name, option_values) super(option_name, option_values) case option_name.upcase when 'LABEL' @label = option_values[0] when 'EXTENSION' @extension = option_values[0] when 'POLLING' @polling = ConfigParser.handle_true_false(option_values[0]) when 'RECURSIVE' @recursive = ConfigParser.handle_true_false(option_values[0]) when 'THROTTLE' @throttle = Float(option_values[0]) @sleeper = Sleeper.new when 'DISCARD_FILE_HEADER_BYTES' @discard_file_header_bytes = Integer(option_values[0]) end end |