root/trunk/experiments/where-do-traits-inhere.rb

Revision 277, 0.6 kB (checked in by ged, 7 months ago)
  • Updated the build system substantially, including stuff from both the ThingFish? and Arrow projects.
  • Updated keywords on everything.
  • Reorganized the specs to match the convention of spec <-> lib hierarchies matching.
  • Added the loadpath library
  • Started refactor of bogswiddle to use Sequel instead of ActiveRecord?
  • Merged improvements from Arrow's logging system back into the FaerieMUD logger.
  • Updated documentation in FaerieMUD::SimpleVerb?
  • Refactored some of the early NLG code out into FaerieMUD::Linguistics
  • Fixed a bug in the recursive-containment detection code that missed containment more than two levels deep.
  • Corrected FaerieMUD::Item description
  • Added a VERSION constant to the toplevel FaerieMUD module.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Rev Author URL Id
Line 
1#!/usr/bin/ruby
2#
3# Testing to see where the Character's trait methods are defined. They should be
4# in the FaerieMUD::Character class, but I suspect they're being defined in
5# ComposedObject.
6#
7# Time-stamp: <12-Jun-2005 11:48:08 ged>
8#
9
10BEGIN {
11        base = File::dirname(File::dirname( File::expand_path(__FILE__) ))
12        $LOAD_PATH.unshift "#{base}/lib"
13
14        require "#{base}/utils.rb"
15        include UtilityFunctions
16}
17
18$yaml = false
19
20require 'fm/character'
21traits = %w{strength dexterity grace magistry}
22
23try( "FaerieMUD::Character.instance_methods(false) & traits", binding )
24try( "FaerieMUD::ComposedObject.instance_methods(false) & traits", binding )
Note: See TracBrowser for help on using the browser.