Sha256: b0e7f414af9050a30186c74f9bdf8ef007ead1dd39d15c9ad7e9193a4abdb902
Contents?: true
Size: 359 Bytes
Versions: 6
Compression:
Stored size: 359 Bytes
Contents
module Kernel def u(css_rule) return UnderOs::App.history.current_page if css_rule == 'page' return UnderOs::App.history.navbar if css_rule == 'navbar' elements = UnderOs::App.history.current_page.find(css_rule) if elements.size == 0 nil elsif elements.size == 1 elements[0] else elements end end end
Version data entries
6 entries across 6 versions & 2 rubygems