Skip to content

Commit 77a1f53

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Shape.ToString ( Fixes #6 )
1 parent aa798cb commit 77a1f53

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Shape.types.ps1xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
</PropertySet>
1515
</Members>
1616
</MemberSet>
17+
<ScriptMethod>
18+
<Name>ToString</Name>
19+
<Script>
20+
&lt;#
21+
.SYNOPSIS
22+
Stringifies the shape
23+
.DESCRIPTION
24+
Gets the shape as a string by returning the shape's `.css`
25+
#&gt;
26+
return "$($this.CSS)"
27+
</Script>
28+
</ScriptMethod>
1729
<ScriptProperty>
1830
<Name>CSS</Name>
1931
<GetScriptBlock>

0 commit comments

Comments
 (0)