Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add helpers: method

  • Loading branch information...
commit 7ba5a2c512d394632cdb9991405f3020838510e3 1 parent f15fd0b
Christopher Bertels authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/sinatra.fy
  2. +1 −1  sinatra.fy.fancypack
4 lib/sinatra.fy
View
@@ -49,6 +49,10 @@ class Sinatra Base {
alias_method: 'redirect: for_ruby: 'redirect
alias_method: 'to: for_ruby: 'to
alias_method: 'content_type: for_ruby: 'content_type
+
+ def self helpers: block {
+ helpers(&block)
+ }
}
class Sinatra Request {
2  sinatra.fy.fancypack
View
@@ -4,6 +4,6 @@ Fancy Package Specification new: "sinatra.fy" with: {
include_files: ["lib/sinatra.fy"]
description: "A Fancy DSL for creating Sinatra web applications"
homepage: "http://www.sinatrarb.org"
- version: "0.0.1"
+ version: "0.1.0"
ruby_dependencies: [["sinatra"]]
}
Please sign in to comment.
Something went wrong with that request. Please try again.