Module: MultiMappable
- Defined in:
- lib/multi_mappable.rb,
lib/multi_mappable/version.rb,
lib/multi_mappable/multi_mappable.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/multi_mappable/multi_mappable.rb', line 18 def self.included(base) base.class_eval do include ROXML include Virtus.model end base.extend(ClassMethods) end |
Instance Method Details
#to_s ⇒ Object
26 27 28 |
# File 'lib/multi_mappable/multi_mappable.rb', line 26 def to_s to_xml.to_s end |