I have the following class method that uses default classes if no provided:
def self.make_sandwich(bread = Bread, butter = Butter, cheese = Cheese)
...
end
So I can call it and pass a new class of bread called MyBread
[class].make_sandwich(MyBread)
But how can I pass a bread and cheese without butter? I know I could change the order or use the attr_accessor to use the default class if no provided, but assume I cant modify that code that way