Class: Roast::Cogs::Ruby

Inherits:
Roast::Cog show all
Defined in:
lib/roast/cogs/ruby.rb

Defined Under Namespace

Classes: Config, Input, Output

Instance Attribute Summary

Attributes inherited from Roast::Cog

#name, #output

Instance Method Summary collapse

Methods inherited from Roast::Cog

#anonymous?, config_class, #failed?, generate_fallback_name, #initialize, input_class, #run!, #skipped?, #started?, #stopped?, #succeeded?, #type, #wait

Constructor Details

This class inherits a constructor from Roast::Cog

Instance Method Details

#execute(input) ⇒ Object

: (Input) -> Output



164
165
166
# File 'lib/roast/cogs/ruby.rb', line 164

def execute(input)
  Output.new(input.value)
end