2023-04-04 01:02:24 +00:00
|
|
|
Class {
|
|
|
|
#name : #PPCMHrule,
|
|
|
|
#superclass : #PPCMNode,
|
|
|
|
#instVars : [
|
|
|
|
'rule'
|
|
|
|
],
|
|
|
|
#category : #'PetitMarkdown-AST'
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #visiting }
|
|
|
|
PPCMHrule >> accept: visitor [
|
|
|
|
^ visitor visitHRule: self
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
PPCMHrule >> rule [
|
|
|
|
^ rule
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
PPCMHrule >> rule: anObject [
|
|
|
|
rule := anObject
|
|
|
|
]
|
2023-04-06 13:47:40 +00:00
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
PPCMHrule >> viewBody [
|
|
|
|
|
|
|
|
| aText |
|
|
|
|
aText := (self className ,' ',
|
|
|
|
self rule) asRopedText.
|
|
|
|
|
|
|
|
self children do: [ :child |
|
|
|
|
aText append: ' ' asRopedText.
|
|
|
|
aText append: (child destination asRopedText foreground:
|
|
|
|
BrGlamorousColors disabledButtonTextColor).
|
|
|
|
aText append: ('= "' asRopedText foreground:
|
|
|
|
BrGlamorousColors disabledButtonTextColor).
|
|
|
|
aText append: (child destination asRopedText foreground:
|
|
|
|
BrGlamorousColors disabledButtonTextColor).
|
|
|
|
aText append:
|
|
|
|
('"' asRopedText foreground:
|
|
|
|
BrGlamorousColors disabledButtonTextColor)
|
|
|
|
].
|
|
|
|
|
|
|
|
|
|
|
|
^ aText
|
|
|
|
]
|