Class: Faker::Bot::Command Abstract Private
- Inherits:
-
Object
- Object
- Faker::Bot::Command
- Extended by:
- Forwardable
- Defined in:
- lib/faker/bot/command.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
This class is abstract.
interface for [Command] objects
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Hash<Symbol, String => String, Boolean>
readonly
private
- Command
-
options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Command
constructor
Initialize the command.
-
#render(result, output) ⇒ IO
private
Render the command result into [IO].
Constructor Details
#initialize(options) ⇒ Command
Initialize the command
33 34 35 |
# File 'lib/faker/bot/command.rb', line 33 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Hash<Symbol, String => String, Boolean> (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
- Command
-
options
24 25 26 |
# File 'lib/faker/bot/command.rb', line 24 def @options end |
Instance Method Details
#render(result, output) ⇒ IO
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Render the command result into [IO]
46 47 48 |
# File 'lib/faker/bot/command.rb', line 46 def render(result, output) Renderer.call(result, , output) end |