Here as you see we have one attribute called "attributes" and we initialize it in our class, so the question is where the name and shirt attributes come from, as we dont initialize and define them in our class?
class Shirt
attr_accessor :attribute
def initialize(attributes)
@attributes = attributes
end
end
store = Shirt.new(name: "go", size: "42")
Also when I inspect this instance of the shirt class I get a hash:
@attributes={:name=>"go", :size=>"42"}
Anyone can help explain it?