Place classes within other classes. These are called nested classes. : nested classes « Class « Ruby






Place classes within other classes. These are called nested classes.


class Drawing
  class Line
  end

  class Circle
  end
end

 








Related examples in the same category

1.Access inner classes