Sha256: de1b862c50d3bebcf66c2a27e1eaba27b49ab1a5685f02c9bf13582e711e03ee

Contents?: true

Size: 651 Bytes

Versions: 5

Compression:

Stored size: 651 Bytes

Contents

require 'rules'

module XCodeBuildHelper
  class LintPlan
    def report_type(name)
      @report_type = name
    end
    def get_report_type
      @report_type
    end

    def output(name)
      @output = name
    end
    def get_output
      @output
    end

    def ignore(name)
      @ignore = name
    end
    def get_ignore
      @ignore
    end

    def rules(rule = nil, &block)
      if block_given?
        if @rules == nil
          rule = XCodeBuildHelper::Rules.new
        else
          rule = @rules
        end
        rule.instance_eval(&block)
      end
      @rules = rule
    end
    def get_rules
      @rules
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xcodebuild-helper-1.2.5 lib/lint_plan.rb
xcodebuild-helper-1.2.3 lib/lint_plan.rb
xcodebuild-helper-1.1.1 lib/lint_plan.rb
xcodebuild-helper-1.1.0 lib/lint_plan.rb
xcodebuild-helper-1.0.0 lib/lint_plan.rb