class Swappy::Config

Attributes

json_data[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

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