Cross Reference: readability.rb
xref
: /
ontohub
/
app
/
models
/
sentence
/
readability.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
module
Sentence
::
Readability
extend
ActiveSupport
::
Concern
def
set_display_text
!
if
text
self.display
_text
=
text.dup
symbols.each
do
|
symbol
|
if
symbol.display
_name
&&
symbol.iri
display_text.gsub
!
(
symbol.iri
,
symbol.display
_name
)
end
end
display_text.gsub
!
(/\s+/,
' '
)
save
!
end
end
end