class Attrib::Configuration
Attributes
filename[RW]
Public Class Methods
new()
click to toggle source
# File lib/tunny/attrib.rb, line 19 def initialize @command = "attrib" end
Public Instance Methods
args()
click to toggle source
# File lib/tunny/attrib.rb, line 23 def args p = [] p << @set.map { |item| "+#{OPTS[item]}" } if @set p << @clear.map { |item| "-#{OPTS[item]}" } if @clear p << @filename.quote p << "/S" if @recurse p << "/D" if @include_folders p << @parameters if @parameters p end
clear(opts)
click to toggle source
# File lib/tunny/attrib.rb, line 38 def clear(opts) @clear = opts end
include_folders()
click to toggle source
# File lib/tunny/attrib.rb, line 46 def include_folders @include_folders = true end
recurse()
click to toggle source
# File lib/tunny/attrib.rb, line 42 def recurse @recurse = true end
set(opts)
click to toggle source
# File lib/tunny/attrib.rb, line 34 def set(opts) @set = opts end