rubyx/lib/slot_language/slot_maker.rb
2019-10-05 19:37:24 +03:00

23 lines
364 B
Ruby

module SlotLanguage
class SlotMaker
attr_reader :name , :leaps
def initialize(name , more)
@name = name
if(more.is_a?(Array))
@leaps = more
else
@leaps = [more] if more
end
end
def add_slot_name(name)
if(@leaps)
@leaps << name
else
@leaps = [name]
end
end
end
end