Class: Sinatra::RPC::Handler::Echo

Inherits:
Object
  • Object
show all
Defined in:
lib/sinatra/rpc/handler/echo.rb

Overview

A simple test handler. Its only purpose is to provide a method that returns the passed string.

Instance Method Summary collapse

Instance Method Details

#echo(string) ⇒ String

A simple echo method. It returns the passed string.


11
12
13
# File 'lib/sinatra/rpc/handler/echo.rb', line 11

def echo(string)
  string
end