Top Level Namespace
Defined Under Namespace
Modules: Ambition, Cheat Classes: Method, Proc, Reflection, String, User
Constant Summary collapse
- RUBY_PLATFORM =
Ruby 1.8 compatibility
PLATFORM
- URL =
ARGV.include?('debug') ? 'http://localhost:8020' : 'http://cheat.errtheblog.com'
- FEED =
rss feed
'http://feeds.feedburner.com/cheatsheets'
- LOGFILE =
'mongrel.log'
- PIDFILE =
'mongrel.pid'
- PORT =
or whatever else you want passed in
ARGV[0].to_i
- ADDR =
ARGV[1]
Instance Method Summary collapse
- #mswin? ⇒ Boolean
-
#parse_tree ⇒ Object
Taken from ruby2ruby, Copyright © 2006 Ryan Davis under the MIT License.
Instance Method Details
#mswin? ⇒ Boolean
5 6 7 |
# File 'lib/cheat.rb', line 5 def mswin? (RUBY_PLATFORM =~ /(:?mswin|mingw)/) || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i) end |
#parse_tree ⇒ Object
Taken from ruby2ruby, Copyright © 2006 Ryan Davis under the MIT License
3 |
# File 'lib/ambition/lib/proc_to_ruby.rb', line 3 require 'parse_tree' |