Top Level Namespace
Defined Under Namespace
Modules: Actor, Containers, Group, Interface, Inventory, Olib
Classes: Area, Bounty, Box, Char, Clothing, Container, Creature, Creatures, Disk, FalseClass, GameObj, Go2, Hash, Herb, Integer, Jewel, Jewelry, MatchData, Mind, NPCS, Pattern, Regexp, Rummage, Scroll, Stance, String, Supervisor, Symbol, TrueClass, Try, Uncommon, Use, VBulletin, Wand
Instance Method Summary
collapse
Instance Method Details
#class_exists?(class_name) ⇒ Boolean
11
12
13
14
15
16
|
# File 'lib/Olib/core/container.rb', line 11
def class_exists?(class_name)
klass = Module.const_get(class_name)
return klass.is_a?(Class)
rescue NameError
return false
end
|
#try(&block) ⇒ Object
56
57
58
|
# File 'lib/Olib/try/try.rb', line 56
def try(&block)
Try.new &block
end
|