class Slidr::Commands::ReturnExecutor

Public Class Methods

new(content) click to toggle source
# File lib/slidr/commands/return_executor.rb, line 6
def initialize(content)
  @content = content
  @commands = []
end

Public Instance Methods

add(command) click to toggle source
# File lib/slidr/commands/return_executor.rb, line 11
def add(command)
  @commands << command
  self
end
go() click to toggle source
# File lib/slidr/commands/return_executor.rb, line 16
def go
  @commands.each do |command|
    @content = command.go(@content)
  end
end