I want to expand a method to the String class in Sinatra, in the erb file, do something like

```
<%= 'some string'.my_method %> 

```

but I don't know how to put the definition code:

```
String.class_eval do
  def my_mythod
    some_code
  end
end

```

By the way I'm using the sinatra modular coding style