Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
irb(main):004:0> $CLASSPATH << File.dirname(File.expand_path(__FILE__)) + '/lib/'
=> ["file:/Users/stephen/dev/ruby/src/gems/redcloth.git/lib/"]

irb(main):005:0> include_class 'RedclothScanService'
=> ["RedclothScanService"]

irb(main):006:0> include_class 'RedclothInline'
=> ["RedclothInline"]

irb(main):007:0> include_class 'RedclothAttributes'
=> ["RedclothAttributes"]

irb(main):009:0> include_class 'RedclothScanService$Base'
NoMethodError: undefined method `RedclothScanService' for main:Object
  from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:74:in `include_class'
irb(main):010:0> include_class Java::RedclothScanService::Base
SyntaxError: /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:34: , unexpected tGVAR

  from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:33:in `include_class'

irb(main):011:0> include_class 'Java::RedclothScanService::Base'
NameError: cannot load Java class Java::RedclothScanService::Base
  from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:57:in `include_class'
  from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:44:in `each'
  from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:44:in `include_class'
  from (irb):12