Class: Trebuchet::Strategy::Default

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

Overview

Default is to not launch the feature to anyone

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) ⇒ Default

Returns a new instance of Default.



7
8
9
# File 'lib/trebuchet/strategy/default.rb', line 7

def initialize(options = nil)
  # ignore options
end

Instance Method Details

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

Returns:

  • (Boolean)


15
16
17
# File 'lib/trebuchet/strategy/default.rb', line 15

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

#nameObject



11
12
13
# File 'lib/trebuchet/strategy/default.rb', line 11

def name
  :default
end

#needs_user?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/trebuchet/strategy/default.rb', line 19

def needs_user?
  false
end

#to_sObject



23
24
25
# File 'lib/trebuchet/strategy/default.rb', line 23

def to_s
  "not launched (default)"
end