Module: Peanuts

Defined in:
lib/peanuts.rb,
lib/peanuts/xml.rb,
lib/peanuts/mapper.rb,
lib/peanuts/mappable.rb,
lib/peanuts/mappings.rb,
lib/peanuts/converters.rb,
lib/peanuts/xml/libxml.rb

Overview

:nodoc:

Defined Under Namespace

Modules: MappableObject, MappableType, Mappings, XML Classes: Converter, Mapper, Mapping

Class Method Summary collapse

Class Method Details

.included(other) ⇒ Object

Deprecated. Include Peanuts::MappableObject instead.



7
8
9
# File 'lib/peanuts.rb', line 7

def self.included(other)
  other.send(:include, MappableObject) if ![Object, Kernel].include?(other)
end

.macro(&block) ⇒ Object



11
12
13
# File 'lib/peanuts.rb', line 11

def self.macro(&block)
  MappableType.macro(&block)
end