• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ducasse / Chrysal / 20900836792

11 Jan 2026 07:42PM UTC coverage: 76.448% (-0.05%) from 76.493%
20900836792

push

github

Ducasse
Merge 8a915c014

396 of 518 relevant lines covered (76.45%)

1.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

65.38
/src/Chrysal/StringConfigurationItem.class.st
1
"
2
To describe string items.
3
Literal in STON.
4

5
```
6
StringConfigurationItem new
7
                propertyName: 'title';
8
                default: 'my super cool book';
9
                yourself
10
```
11
"
12
Class {
13
        #name : 'StringConfigurationItem',
14
        #superclass : 'ChrysalItem',
15
        #category : 'Chrysal-Model',
16
        #package : 'Chrysal',
17
        #tag : 'Model'
18
}
19

20
{ #category : 'example' }
21
StringConfigurationItem class >> example [
×
22

×
23
        <sampleInstance>
×
24
        
×
25
        ^ StringConfigurationItem new
×
26
                propertyName: #title;
×
27
                default: 'my super cool book';
×
28
                yourself.
×
29
]
×
30

31
{ #category : 'accessing' }
32
StringConfigurationItem >> defaultDomainValueString [
2✔
33
        "Returns a string representing the default value but as an object once imported in Pharo and not a string used by the writer of a configuration."
2✔
34

2✔
35
        ^ '''', self default, ''''
2✔
36
]
2✔
37

38
{ #category : 'accessing' }
39
StringConfigurationItem >> defaultValue [
2✔
40
        "default value for the default value of the item expressed in the domain of the configuration writer"
2✔
41
        ^ 'default value for ' , self propertyName
2✔
42
]
2✔
43

44
{ #category : 'conversion' }
45
StringConfigurationItem >> domainValueConversionString [
2✔
46
        "Returns a string converting a string as written by in the configuration file to a pharo object. 
2✔
47
        Note that this method is like the body of a macro that will be expanded in the configuration class: 
2✔
48
        here aValue is the name of the parameter of the generated method.
2✔
49
        "
2✔
50
        
2✔
51
        ^ '^ aValue'
2✔
52
]
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc