17 lines
226 B
Ruby
17 lines
226 B
Ruby
|
|
|
|
class BlockView
|
|
|
|
include React::Component
|
|
required_param :block, type: []
|
|
|
|
|
|
def render
|
|
div :class => :row do
|
|
block.each do |code| #should be block.codes.each
|
|
code.to_s.br
|
|
end
|
|
end
|
|
end
|
|
end
|