Skip to content

Commit 3c652f0

Browse files
committed
🎨 Write out Numo::Int32 as string
1 parent 34a2003 commit 3c652f0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/rubydown.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ def to_html
1919
end
2020
end
2121

22+
class Numo::Int32
23+
def to_html
24+
<<-HTML
25+
#{self.to_a}
26+
HTML
27+
end
28+
end
29+
2230
class Plotly::Plot
2331
def to_html
2432
html=create_html(@data, layout: @layout, embedded: false)

0 commit comments

Comments
 (0)