Sha256: 3e4c76d235c55bf7feab6581fe39914af7c797f87158068662465c356f0ecece

Contents?: true

Size: 377 Bytes

Versions: 4

Compression:

Stored size: 377 Bytes

Contents

# Represents a default mission which doesn't need an explicit action.
class Bond::Missions::DefaultMission < Bond::Mission
  def initialize(options={}) #:nodoc:
    options[:action] ||= default_action
    super
  end

  def default_action #:nodoc:
    Object.const_defined?(:IRB) && IRB.const_defined?(:InputCompletor) ? IRB::InputCompletor::CompletionProc : :default
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
cldwalker-bond-0.1.3 lib/bond/missions/default_mission.rb
cldwalker-bond-0.1.4 lib/bond/missions/default_mission.rb
bond-0.1.3 lib/bond/missions/default_mission.rb
bond-0.1.4 lib/bond/missions/default_mission.rb