Class: Trebuchet::Strategy::Nobody

Inherits:
Base
  • Object
show all
Includes:
Singleton
Defined in:
lib/trebuchet/strategy/nobody.rb

Overview

Nobody is to launch the feature to nobody

Instance Attribute Summary

Attributes inherited from Base

#feature

Instance Method Summary collapse

Methods inherited from Base

#as_json, #export, #feature_id, #inspect, strategy_name

Constructor Details

#initialize(options = nil) ⇒ Nobody

Returns a new instance of Nobody.



6
7
8
# File 'lib/trebuchet/strategy/nobody.rb', line 6

def initialize(options = nil)
  # ignore options
end

Instance Method Details

#launch_at?(user, request = nil) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/trebuchet/strategy/nobody.rb', line 14

def launch_at?(user, request = nil)
  false
end

#nameObject



10
11
12
# File 'lib/trebuchet/strategy/nobody.rb', line 10

def name
  :nobody
end

#needs_user?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/trebuchet/strategy/nobody.rb', line 18

def needs_user?
  false
end

#to_sObject



22
23
24
# File 'lib/trebuchet/strategy/nobody.rb', line 22

def to_s
  "launched to nobody"
end