Is there a better way to access DATA from inside a spec file than as 
described in this thread? http://www.ruby-forum.com/topic/1154214

The solution they talk about is doing 
File.read(__FILE__).split("__END__\n")[-1]

To me it seems like having a support for this might be useful in cases when 
you're building something like a parser, or anything related to a larger 
config file.

What do you think guys?

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rspec/-/40j3pFmjTM0J.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to