# Scala · Scaladoc

Real Scaladoc 2 HTML output from the checked-in scala fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.

> Source: https://appgram.github.io/docsy/scala-sdk  
> Language: scala  
> Symbols: 6 across 4 categories

## Categories

- [Classes](#classes) — 1 items
- [Constructors](#constructors) — 1 items
- [Methods](#methods) — 3 items
- [Properties](#properties) — 1 items

## Classes

### `Greeter`  <sub>class</sub>

Build personalized greetings without network access.

```scala
class Greeter extends AnyRef
```

**Example**

```scala
val greeter = new Greeter
println(greeter.greet("Docsy"))
```

## Constructors

### `example.Greeter#<init>`  <sub>constructor</sub>

```scala
new Greeter()
```

## Methods

### `example.Greeter#greet`  <sub>method</sub>

Greet a reader.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ | Reader name. |

**Returns** — `String` — A friendly greeting.

```scala
def greet(name: String): String
```

**Example**

```scala
new Greeter().greet("Ada")
```

---

### `example.Greeter#greetChecked`  <sub>method</sub>

Reject an empty reader name.

**Errors**

- `IllegalArgumentException` — IllegalArgumentException When name is empty.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ | Reader name. |

**Returns** — `String` — A validated greeting.

```scala
def greetChecked(name: String): String
```

**Example**

```scala
new Greeter().greetChecked("Ada")
```

---

### `example.Greeter#greetMany`  <sub>method</sub>

Greet several readers while preserving input order.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `names` | `List[String]` | ✓ | Reader names. |

| `separator` | `String` |  | Separator between greetings. |

**Returns** — `String` — Joined greetings.

```scala
def greetMany(names: List[String], separator: String = " / "): String
```

**Example**

```scala
new Greeter().greetMany(List("Ada", "Linus"))
```

## Properties

### `example.Greeter#prefix`  <sub>property</sub>

Greeting prefix used for future calls.

```scala
var prefix: String
```
