Class: Browser::CSS::StyleSheet::Media

Inherits:
Native::Array
  • Object
show all
Defined in:
opal/browser/css/style_sheet.rb

Instance Method Summary collapse

Instance Method Details

#delete(medium) ⇒ Object


77
78
79
# File 'opal/browser/css/style_sheet.rb', line 77

def delete(medium)
  `#@native.deleteMedium(#{medium})`
end

#push(medium) ⇒ Object


71
72
73
74
75
# File 'opal/browser/css/style_sheet.rb', line 71

def push(medium)
  `#@native.appendMedium(#{medium})`

  self
end