Class: Symbol

Inherits:
Object show all
Defined in:
lib/sugar-high/file.rb,
lib/sugar-high/arguments.rb

Instance Method Summary collapse

Instance Method Details

#argsObject



27
28
29
# File 'lib/sugar-high/arguments.rb', line 27

def args
  [to_s]
end

#as_filenameObject



14
15
16
# File 'lib/sugar-high/file.rb', line 14

def as_filename
  self.to_s.underscore
end

#fileObject



22
23
24
# File 'lib/sugar-high/file.rb', line 22

def file
  as_filename.file
end

#valid_file_command?Boolean

Returns:



18
19
20
# File 'lib/sugar-high/file.rb', line 18

def valid_file_command?
  [:read, :remove, :delete].include? self
end