class Faker::Bot::Command

@abstract interface for [Command] objects

@api private

Attributes

options[R]
Command

options

@return [Hash<Symbol, String => String, Boolean>]

@api private

Public Class Methods

new(options) click to toggle source

Initialize the command

@param options [Hash<Symbol, String => String, Boolean>]

The command options

@api public

# File lib/faker/bot/command.rb, line 33
def initialize(options)
  @options = options
end

Public Instance Methods

render(result, output) click to toggle source

Render the command result into [IO]

@param result {Hash} the render tree @param output [IO]

@return [IO]

@api private

# File lib/faker/bot/command.rb, line 46
def render(result, output)
  Renderer.call(result, options, output)
end