Class: Bond::OperatorMethodMission

Inherits:
MethodMission show all
Defined in:
lib/bond/missions/operator_method_mission.rb

Overview

A mission which completes arguments for any module/class method that is an operator i.e. ‘>’ or ‘*’. Takes same Bond.complete options as MethodMission. The only operator method this mission doesn’t complete is ‘[]=’. The operator ‘[]’ should cover the first argument completion of ‘[]=’ anyways.

Constant Summary collapse

OPERATORS =
Mission::OPERATORS - ["[]", "[]="]
OBJECTS =
Mission::OBJECTS + %w{\S+}
CONDITION =
%q{(OBJECTS)\s*(METHODS)\s*(['":])?(.*)$}

Instance Attribute Summary

Attributes inherited from Mission

#action, #matched, #on, #place

Method Summary

Methods inherited from MethodMission

action_methods, all_methods, any_const_get, create, find, #match_message, reset

Methods inherited from Mission

#call_action, #call_search, #condition, create, current_eval, #do_match, #execute, #initialize, #match_message, #matches?, #name

Constructor Details

This class inherits a constructor from Bond::Mission