# Started learning about modules and classes.
# TOo many tickles to finish it tonight. 👋👉😆🙌👋😂👉👋👋😭


# - how to define modules

# module name must start with a capital
module MyModule
    
    def MyModule.apple
        puts 'Apple!'
    end
    
    # Class name must start with capital
    class MyClass
        
        def initialize name
            @name = name
            puts 'Hello, I am a new MyClass'
        end
        
        def otherMethod
            puts "This is the other method, #{@name}."
        end
    end
    
end

# - how to access/use things that are defined in modules
# - how to define classes


# - how to make instances of classes

# Call the 'new' method. This calls initialize.
MyModule.apple()
myMyClass = MyModule::MyClass.new 'David'
myMyClass.otherMethod

# - how to make subclasses (if that is possible)
# - how to extend classes with new functionality (if that is possible




# cooking module

def scramble_food type
   if type.is_a? String
       puts type
   else
       puts "Not a food"
   end
end

# string manipulation module