Module: SwitchFile
- Defined in:
- lib/switch_file.rb,
lib/switch_file/app.rb,
lib/switch_file/version.rb,
lib/switch_file/file_type.rb,
lib/switch_file/source_path.rb,
lib/switch_file/file_type_shortcut.rb
Defined Under Namespace
Classes: App, FileType, FileTypeShortcut, SourcePath
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.config_path ⇒ Object
12
13
14
|
# File 'lib/switch_file.rb', line 12
def self.config_path
@config_path ||= (Pow(Dir.pwd) / '.switch_file')
end
|
.config_path=(value) ⇒ Object
16
17
18
|
# File 'lib/switch_file.rb', line 16
def self.config_path=(value)
@config_path = value && Pow(value)
end
|
.file_type_attributes ⇒ Object
20
21
22
|
# File 'lib/switch_file.rb', line 20
def self.file_type_attributes
@file_type_attributes ||= eval(config_path.read)
end
|
.file_type_attributes=(attributes_array) ⇒ Object
24
25
26
|
# File 'lib/switch_file.rb', line 24
def self.file_type_attributes=(attributes_array)
@file_type_attributes = attributes_array
end
|