Class: Wallaby::Resources::Index::NumrangeHtml

Inherits:
Cell
  • Object
show all
Defined in:
app/views/wallaby/resources/index/numrange_html.rb

Overview

Html cell

Direct Known Subclasses

Int4rangeHtml, Int8rangeHtml

Instance Method Summary collapse

Instance Method Details

#renderString

Returns:

  • (String)


9
10
11
12
13
14
15
16
17
# File 'app/views/wallaby/resources/index/numrange_html.rb', line 9

def render
  if value.nil?
    null
  else
    concat (:span, value.first, class: 'from')
    concat '...'
    concat (:span, value.last, class: 'to')
  end
end