Class: Pact::Provider::Help::PromptText
- Inherits:
-
Object
- Object
- Pact::Provider::Help::PromptText
- Defined in:
- lib/pact/provider/help/prompt_text.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(reports_dir, options) ⇒ PromptText
constructor
A new instance of PromptText.
Constructor Details
#initialize(reports_dir, options) ⇒ PromptText
Returns a new instance of PromptText.
14 15 16 17 |
# File 'lib/pact/provider/help/prompt_text.rb', line 14 def initialize reports_dir, @reports_dir = File.(reports_dir) @options = end |
Class Method Details
.call(reports_dir = Pact.configuration.reports_dir, options = {color: Pact.configuration.color_enabled}) ⇒ Object
10 11 12 |
# File 'lib/pact/provider/help/prompt_text.rb', line 10 def self.call reports_dir = Pact.configuration.reports_dir, = {color: Pact.configuration.color_enabled} new(reports_dir, ).call end |
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'lib/pact/provider/help/prompt_text.rb', line 19 def call [:color] ? prompt_text_colored : prompt_text_plain end |