Module: Cheri
- Defined in:
- lib/cheri/cheri.rb,
lib/cheri/java/java.rb,
lib/cheri/builder/base.rb,
lib/cheri/builder/config.rb,
lib/cheri/builder/context.rb,
lib/cheri/builder/awt/main.rb,
lib/cheri/builder/awt/types.rb,
lib/cheri/builder/connecter.rb,
lib/cheri/builder/generator.rb,
lib/cheri/builder/xml/types.rb,
lib/cheri/explorer/explorer.rb,
lib/cheri/java/builder/main.rb,
lib/cheri/java/builder/util.rb,
lib/cheri/builder/html/types.rb,
lib/cheri/builder/xml/common.rb,
lib/cheri/builder/html/common.rb,
lib/cheri/builder/swing/types.rb,
lib/cheri/builder/xml/element.rb,
lib/cheri/builder/html/element.rb,
lib/cheri/builder/awt/connecter.rb,
lib/cheri/builder/awt/constants.rb,
lib/cheri/builder/xml/connecter.rb,
lib/cheri/jruby/explorer/common.rb,
lib/cheri/jruby/explorer/splash.rb,
lib/cheri/jruby/explorer/viewer.rb,
lib/cheri/builder/html/connecter.rb,
lib/cheri/jruby/explorer/dialogs.rb,
lib/cheri/builder/swing/connecter.rb,
lib/cheri/builder/swing/constants.rb,
lib/cheri/jruby/explorer/dialogs-old.rb,
lib/cheri/jruby/jruby.rb
Overview
Defined Under Namespace
Modules: AWT, Builder, Explorer, Html, JRuby, Java, Swing, VERSION, Xml
Classes: CheriException
Constant Summary
collapse
- PathExp =
Regexp.new "cheri-#{VERSION::STRING}\\/lib$"
Class Method Summary
collapse
Class Method Details
.argument_error(argc, expected_argc) ⇒ Object
43
44
45
|
# File 'lib/cheri/cheri.rb', line 43
def argument_error(argc, expected_argc)
ArgumentError.new("wrong number of arguments (#{argc} for #{expected_argc})")
end
|
.img_path ⇒ Object
57
58
59
|
# File 'lib/cheri/cheri.rb', line 57
def img_path
@img_path ||= "#{load_path}cheri/image/"
end
|
.load_path ⇒ Object
46
47
48
49
50
51
52
53
54
55
56
|
# File 'lib/cheri/cheri.rb', line 46
def load_path
unless @load_path
$LOAD_PATH.each do |path|
if path =~ PathExp
@load_path = "#{path}/"
break
end
end
end
@load_path ||= ''
end
|
.type_error(object, *expected_type) ⇒ Object
40
41
42
|
# File 'lib/cheri/cheri.rb', line 40
def type_error(object, *expected_type)
TypeError.new("wrong argument type #{object.class} (expected #{expected_type.join(' or ')})")
end
|