Sha256: fb14885397baa10b6e4f53c700a0fb3b56fb57dd6674caaee34d86de5bd0b945

Contents?: true

Size: 494 Bytes

Versions: 11

Compression:

Stored size: 494 Bytes

Contents

grammar Browsers

  rule body
    space? browser_name space? headless? {
      def content
        hash = {}
        hash[:browser] = browser_name.content
        hash[:headless] = !elements.last.empty?
        hash
      end
    }
  end

  rule headless
    "headless" space? {
      def content
        true
      end
    }
  end

  rule browser_name
    [\S]+ {
      def content
        text_value
      end
    }
  end

  rule space
    [\s]+ {
      def content
      end
    }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
uptime_monitor-0.7.10 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.7.2 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.7.1 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.7.0 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.6.3 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.6.0 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.5.0 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.4.0 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.3.3 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.3.2 lib/uptime_monitor/browsers.treetop
uptime_monitor-0.3.1 lib/uptime_monitor/browsers.treetop