class Imasgen::MIXNUTSCls
Public Class Methods
new(*nuts)
click to toggle source
Calls superclass method
Imasgen::GeneratorBase::new
# File lib/imasgen/mixnuts.rb, line 13 def initialize(*nuts) super() nuts.each do |item| case item when Imasgen::SIDEM @namedic += Imasgen::SideMCls.getyaml when Imasgen::MILLIONLIVE @namedic += Imasgen::MillionLiveCls.getyaml when Imasgen::CINDERELLA @namedic += Imasgen::CinderellaGirlsCls.getyaml else raise ArgumentError.new("Invalid Argument #{item}") end end if nuts.none? @namedic += Imasgen::SideMCls.getyaml @namedic += Imasgen::MillionLiveCls.getyaml @namedic += Imasgen::CinderellaGirlsCls.getyaml end @args = nuts end
Public Instance Methods
unique()
click to toggle source
# File lib/imasgen/mixnuts.rb, line 35 def unique @unique_i ||= self.class.new(*@args) end