Class: O2Html::Div

Inherits:
Object
  • Object
show all
Defined in:
lib/o2html.rb

Class Method Summary collapse

Class Method Details

.define(attr) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/o2html.rb', line 16

def self.define(attr)
  
  h = {}      
  
  if attr[:scroll] then
    h = {style: 'overflow-y: scroll'}
    attr.delete :scroll
  end
  
  ['div', h]
  
end