Skip to content

Commit 71d5ca5

Browse files
[lasagna] Update introduction.md to mention inner classes
Updated intro of first concept exercise to include a mention of nested classes.
1 parent 93f64f9 commit 71d5ca5

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

exercises/concept/lasagna/.docs/introduction.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@ end
4747
my_first_calc = Calculator.new
4848
```
4949

50+
Classes can contain other classes (_inner classes_):
51+
52+
```
53+
# Define outer class
54+
class Calculator
55+
56+
class SpecialHandler
57+
# ...
58+
end
59+
60+
# ...
61+
end
62+
```
63+
5064
## Methods
5165

5266
Units of functionality are encapsulated in methods - similar to _functions_ in other languages.

0 commit comments

Comments
 (0)