class Ezframe::Materialize::Collection

Public Instance Methods

to_h() click to toggle source
# File lib/ezframe/materialize.rb, line 112
def to_h
  list = self.map do |line|
    Ht.li(class: %w[collection-item], child: line)
  end
  return Ht.ul(class: %w[collection], child: list)
end