Class: XCodeBuildHelper::LintPlan
- Inherits:
-
Object
- Object
- XCodeBuildHelper::LintPlan
- Defined in:
- lib/lint_plan.rb
Instance Method Summary collapse
- #get_ignore ⇒ Object
- #get_output ⇒ Object
- #get_report_type ⇒ Object
- #get_rules ⇒ Object
- #ignore(name) ⇒ Object
- #output(name) ⇒ Object
- #report_type(name) ⇒ Object
- #rules(rule = nil, &block) ⇒ Object
Instance Method Details
#get_ignore ⇒ Object
22 23 24 |
# File 'lib/lint_plan.rb', line 22 def get_ignore @ignore end |
#get_output ⇒ Object
15 16 17 |
# File 'lib/lint_plan.rb', line 15 def get_output @output end |
#get_report_type ⇒ Object
8 9 10 |
# File 'lib/lint_plan.rb', line 8 def get_report_type @report_type end |
#get_rules ⇒ Object
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 |