Module: Charisma

Defined in:
lib/charisma.rb,
lib/charisma/base.rb,
lib/charisma/curator.rb,
lib/charisma/version.rb,
lib/charisma/measurement.rb,
lib/charisma/number_helper.rb,
lib/charisma/characteristic.rb,
lib/charisma/characterization.rb,
lib/charisma/curator/curation.rb,
lib/charisma/measurement/mass.rb,
lib/charisma/measurement/time.rb,
lib/charisma/measurement/speed.rb,
lib/charisma/base/class_methods.rb,
lib/charisma/measurement/length.rb

Overview

Charisma provides a superficiality framework for Ruby objects.

You can use it to:

* Provide a <em>curation strategy</em> for your class that defines which of its attributes are <em>superfically important.</em>
* Define <em>metadata</em> on these characteristics, such as measurements and units.
* Facilitate <em>appropriate presentation</em> of these characteristics (i.e., intelligent <tt>#to_s</tt>).

Defined Under Namespace

Modules: Base Classes: Characteristic, Characterization, Curator, Measurement, NumberHelper

Constant Summary collapse

VERSION =

Charisma’s version

"0.3.4"

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Prepare a class for characterization with include Charisma.



33
34
35
36
# File 'lib/charisma.rb', line 33

def self.included(base)
  base.send :include, Base
  base.extend Base::ClassMethods
end