module OpenFlow::Controller::Completion

Constants

OPERATORS

Set of available operators in Ruby

Proc
RESERVED_WORDS

Set of reserved words used by Ruby, you should not use these for constants or variables

Public Class Methods

select_message(receiver, message, candidates, sep = '.') click to toggle source
# File lib/openflow-controller/completion.rb, line 200
def self.select_message(receiver, message, candidates, sep = '.')
  candidates.grep(/^#{message}/).map do |e|
    case e
    when /^[a-zA-Z_]/
      receiver + sep + e
    when /^[0-9]/
    when *OPERATORS
      #receiver + " " + e
    end
  end
end