Created
August 8, 2008 22:15
-
-
Save dyoder/4630 to your computer and use it in GitHub Desktop.
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
Breakpoint 1 at autocode.rb:52 | |
/opt/local/lib/ruby/gems/1.8/gems/autocode-1.0.0/lib/autocode.rb:52 | |
Kernel.load( path ) unless path.nil? | |
(rdb:3) path | |
"helpers/default.rb" | |
(rdb:3) self | |
Pages::Helpers | |
(rdb:3) Kernel.load( path ) | |
true | |
(rdb:3) const_defined?( :Default ) | |
false | |
(rdb:3) constants | |
[] | |
(rdb:3) File.read( path ) | |
"module Pages\n \n module Helpers\n \n module Default\n \n include Waves::Helpers::Default\n \n def model( name )\n Waves.application.models[ name ][ :db / domain / name ]\n end\n \n def show( model, name, assigns = {} )\n\t\t\t assigns[ model ] = find( model, name )\n\t\t\t view( model, :content, assigns ) if assigns[ model ]\n\t\t\tend\n\t\t\t\n\t\t\tdef story( name, assigns = {} )\n\t\t\t show( :story, name, assigns )\n\t\t\tend\n\t\t\t\n\t\t\tdef format( options )\n\t\t\t self << if ( options[:format] && \n\t\t\t options[:format] != 'html' && \n\t\t\t respond_to?( options[:format] ) )\n \t\t\t self.send options[:format], options[:content]\n \t\t\telse\n \t\t\t options[:content]\n \t\t\tend\n\t\t\tend\n\t\t\t\n\t\t\tdef site ; Pages::Models::Site[ :db / domain ].find( 'site' ) ; end\n\n\t\tend\n\tend\nend" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment