introduce slot_definition and use it

This commit is contained in:
Torsten Ruger
2017-09-04 21:31:49 +03:00
parent c6e241adeb
commit 1a219a7c89
6 changed files with 26 additions and 6 deletions

View File

@ -43,4 +43,12 @@ module Mom
class SlotMove < SlotLoad
end
class SlotDefinition
attr_reader :known_object , :slots
def initialize( object , slots)
@known_object , @slots = object , slots
slot = [slot] unless slot.is_a?(Array)
end
end
end