class Swappy::Config
Attributes
json_data[R]
link_root[R]
source_root[R]
Public Class Methods
new(json_data, link_root, source_root)
click to toggle source
# File lib/swappy/config.rb, line 5 def initialize(json_data, link_root, source_root) @link_root = link_root @source_root = source_root @json_data = json_data end
Public Instance Methods
link_file()
click to toggle source
# File lib/swappy/config.rb, line 11 def link_file json_data[0] end
link_path()
click to toggle source
# File lib/swappy/config.rb, line 19 def link_path File.expand_path(File.join(link_root, link_file)) end
source_file()
click to toggle source
# File lib/swappy/config.rb, line 15 def source_file json_data[1] end
source_path()
click to toggle source
# File lib/swappy/config.rb, line 23 def source_path File.expand_path(File.join(source_root, source_file)) end