Sha256: 2143f9a3f52362e05ad8ff8377fbef636b30e01313e205823fdf2352f3ab8d05
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
# Represents a completion mission specified by :method in Bond.complete. class Bond::Missions::MethodMission < Bond::Mission attr_reader :method_condition def initialize(options={}) #:nodoc: @method_condition = options.delete(:method) @method_condition = Regexp.quote(@method_condition.to_s) unless @method_condition.is_a?(Regexp) options[:on] = /^\s*(#{@method_condition})\s*['"]?(.*)$/ super end def set_input(input, match) #:nodoc: @input = match[-1] end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
cldwalker-bond-0.1.1 | lib/bond/missions/method_mission.rb |
bond-0.1.1 | lib/bond/missions/method_mission.rb |