Skip to content

hsume2/rose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rose

Rose (say it out loud: rows, rows, rows) is a slick Ruby DSL for reporting:

Rose.make(:worlds) do
  rows do
    column(:hello => "Hello")
    column(:world)
  end
end

class World < Struct.new(:hello, :world)
end

Rose(:worlds).bloom([World.new("Say", "what?")]).to_s

+---------------+
| Hello | world |
+---------------+
| Say   | what? |
+---------------+

It integrates with ActiveRecord too!

Install the gem:

gem install rose

Installation and Usage

All documentation is at http://hsume2.github.com/rose

Copyright

Copyright (c) 2010 Henry Hsu. See LICENSE for details.

About

A slick Ruby DSL for reporting.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages