Skip to content

Instantly share code, notes, and snippets.

@jparrish62
Created June 2, 2016 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jparrish62/cc519f95aad82f314aec4f4b7e6b452e to your computer and use it in GitHub Desktop.
Save jparrish62/cc519f95aad82f314aec4f4b7e6b452e to your computer and use it in GitHub Desktop.
require_relative 'fish_menu'
class Customer
attr_accessor :name, :money
include Menu
def inialize(args)
@name = args[:name]
@money = args[:money]
@order = args[:order]
end
def place_order
puts "#{@name} "
end
end
john = Customer.new
john.fish_a
module Menu
def fish_menu
@fish = {
:fish_1 => "fried",
:fish_2 => "grilled",
:fish_3 => "baked",
:fish_4 => "saulteed"
}
end
def fish_a
order_1 = @fish[:fish_1]
puts " Bill wants his fish #{order_1}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment