We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e8e6c commit 5fbd5d3Copy full SHA for 5fbd5d3
src/main/scala/s/decorator/like/aop/Display.scala
@@ -13,13 +13,3 @@ trait Display {
13
}
14
15
16
-
17
-object Display {
18
- def ofString(string: String): Display = new StringDisplay(string)
19
20
- def ofSideBorder(string: String, ch: Char): Display = {
21
- new StringDisplay(string) with SideBorder {
22
- override def borderChar: Char = ch
23
- }
24
25
-}
src/main/scala/s/decorator/like/aop/SideBorder.scala
@@ -2,12 +2,8 @@ package s.decorator.like.aop
2
3
import scala.util.DynamicVariable
4
5
-object SideBorder {
6
- val dv = new DynamicVariable[Char]
7
8
9
trait SideBorder extends Display {
10
- def borderChar: Char = {}
+ def borderChar: Char
11
12
abstract override def columns: Int = 1 + super.columns + 1
0 commit comments