Sha256: 2fdd1a9d068dbb07ea91aa97d514b8226fee84e330f0589fc17378b6ee24625f
Contents?: true
Size: 826 Bytes
Versions: 7
Compression:
Stored size: 826 Bytes
Contents
module Appium class Lint # noinspection RubyArgCount class Base attr_reader :input, :warnings # Appium::Lint::Base.new file: '/path/to/file' # # Appium::Lint::Base.new data: 'some **markdown**' def initialize opts @input = opts.is_a?(OpenStruct) ? opts : Appium::Lint.new_input(opts) @warnings = Hash.new [] end # Record a warning on a zero indexed line number # # @param line_number [int] line number to warn on # @return [warnings] def warn line_number, extra=nil message = extra ? fail + ' ' + extra : fail warnings[line_number + 1] += [message] warnings end def fail raise NotImplementedError end def call raise NotImplementedError end end end end
Version data entries
7 entries across 7 versions & 1 rubygems