Created
September 8, 2012 09:22
-
-
Save igrep/3673003 to your computer and use it in GitHub Desktop.
example of dump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Profile | |
| DEFAULT = "default" | |
| def self.generate_source name=DEFAULT | |
| %Q" | |
| #{self}.new #{name.dump} do|p| | |
| # Required Properties | |
| # DO NOT LEAVE THEM EMPTY! | |
| p.src = '' | |
| p.dest = '' | |
| # Optional Properties | |
| #p.before_save do | |
| #end | |
| #p.after_save do | |
| #end | |
| #p.before_restore do | |
| #end | |
| #p.after_restore do | |
| #end | |
| end | |
| " | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment