Method: OpenC3::ToolModel#as_config
- Defined in:
- lib/openc3/models/tool_model.rb
#as_config ⇒ Object
174 175 176 177 178 179 180 181 182 183 |
# File 'lib/openc3/models/tool_model.rb', line 174 def as_config result = "TOOL #{@folder_name ? @folder_name : 'nil'} \"#{@name}\"\n" result << " URL #{@url}\n" if @url result << " INLINE_URL #{@inline_url}\n" if @inline_url result << " ICON #{@icon}\n" if @icon result << " WINDOW #{@window}\n" unless @window == 'INLINE' result << " CATEGORY #{@category}\n" if @category result << " SHOWN false\n" unless @shown result end |