module Riffer::Wire
Constants
- TOOL_NAME_SEPARATOR
Public Instance Methods
Source
# File lib/riffer/wire.rb, line 19 def decode_tool_name(wire_name, tools:) tool = tools.find { |t| encode_tool_name(t.name) == wire_name } tool ? tool.name : wire_name end
Source
# File lib/riffer/wire.rb, line 13 def encode_tool_name(name) name.gsub("/", TOOL_NAME_SEPARATOR) end
Source
# File lib/riffer/wire.rb, line 26 def parse_tool_arguments(arguments) return {} if arguments.empty? JSON.parse(arguments) end