Class: XCodeBuildHelper::LintPlan

Inherits:
Object
  • Object
show all
Defined in:
lib/lint_plan.rb

Instance Method Summary collapse

Instance Method Details

#get_ignoreObject



22
23
24
# File 'lib/lint_plan.rb', line 22

def get_ignore
  @ignore
end

#get_outputObject



15
16
17
# File 'lib/lint_plan.rb', line 15

def get_output
  @output
end

#get_report_typeObject



8
9
10
# File 'lib/lint_plan.rb', line 8

def get_report_type
  @report_type
end

#get_rulesObject



37
38
39
# File 'lib/lint_plan.rb', line 37

def get_rules
  @rules
end

#ignore(name) ⇒ Object



19
20
21
# File 'lib/lint_plan.rb', line 19

def ignore(name)
  @ignore = name
end

#output(name) ⇒ Object



12
13
14
# File 'lib/lint_plan.rb', line 12

def output(name)
  @output = name
end

#report_type(name) ⇒ Object



5
6
7
# File 'lib/lint_plan.rb', line 5

def report_type(name)
  @report_type = name
end

#rules(rule = nil, &block) ⇒ Object



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/lint_plan.rb', line 26

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