Module: RubyXL::RelationshipSupport::ClassMehods

Defined in:
lib/rubyXL/objects/relationships.rb

Instance Method Summary collapse

Instance Method Details

#define_relationship(klass, accessor = nil) ⇒ Object



138
139
140
141
# File 'lib/rubyXL/objects/relationships.rb', line 138

def define_relationship(klass, accessor = nil)
  class_variable_get(:@@ooxml_relationships)[klass] = accessor
  attr_accessor(accessor) if accessor
end