class Fudge::Tasks::Cane
Allow use of Cane
complexity and style analyser
Private Instance Methods
check_for()
click to toggle source
# File lib/fudge/tasks/cane.rb, line 14 def check_for /\A\Z/ end
cmd(options={})
click to toggle source
# File lib/fudge/tasks/cane.rb, line 9 def cmd(options={}) cmd = ["cane"] + tty_options bundle_cmd(cmd.join(' '), options) end
doc_options()
click to toggle source
# File lib/fudge/tasks/cane.rb, line 22 def doc_options "--no-doc" unless options.fetch(:doc, true) end
style_options()
click to toggle source
# File lib/fudge/tasks/cane.rb, line 26 def style_options "--no-style" unless options.fetch(:style, true) end
style_width_options()
click to toggle source
# File lib/fudge/tasks/cane.rb, line 30 def style_width_options if options.has_key?(:max_width) "--style-measure #{options.fetch(:max_width)}" end end
tty_options()
click to toggle source
# File lib/fudge/tasks/cane.rb, line 18 def tty_options args = [doc_options, style_options, style_width_options].compact end