class Speedflow::Plugin::Test::Plugin
Speedflow
test plugin
Attributes
config[RW]
@return [Config] Plugin
config.
prompt[RW]
@return [Prompt] Plugin
prompt.
Public Class Methods
new(config, prompt)
click to toggle source
Public: Constructor
config - Speedflow::Plugin::Configuration object. prompt - Speedflow::Plugin::Prompt object.
Examples
Manager.new(<Speedflow::Plugin::Configuration.new({})>) # => <Speedflow::Plugin::Test>
Returns nothing.
# File lib/speedflow/plugin/test/plugin.rb, line 23 def initialize(config, prompt) @config = config @prompt = prompt end
Public Instance Methods
action_test()
click to toggle source
Public: Action to test
Returns Hash of arguments.
# File lib/speedflow/plugin/test/plugin.rb, line 31 def action_test @prompt.warn ' - Pong: test' @prompt.warn " Config: #{@config.all_config}" @prompt.warn " Input: #{@config.all_input}" @config.all_input end