class Objc::Test::SourceFiles

Attributes

prefix[R]

Public Class Methods

new(prefix) click to toggle source
# File lib/objc/source_files.rb, line 5
def initialize(prefix)
  @prefix = prefix
end

Public Instance Methods

data() click to toggle source
# File lib/objc/source_files.rb, line 35
def data
  [ { 'name' => source_file, 'path' => source_file_path },
    { 'name' => header_file, 'path' => header_file_path },
    { 'name' => test_file, 'path' => test_file_path } ]
end
header_file() click to toggle source
# File lib/objc/source_files.rb, line 19
def header_file
  "#{prefix}.h"
end
header_file_path() click to toggle source
# File lib/objc/source_files.rb, line 23
def header_file_path
  File.expand_path(header_file)
end
source_file() click to toggle source
# File lib/objc/source_files.rb, line 11
def source_file
  "#{prefix}.m"
end
source_file_path() click to toggle source
# File lib/objc/source_files.rb, line 15
def source_file_path
  File.expand_path(source_file)
end
test_file() click to toggle source
# File lib/objc/source_files.rb, line 27
def test_file
  "#{prefix}Test.m"
end
test_file_path() click to toggle source
# File lib/objc/source_files.rb, line 31
def test_file_path
  File.expand_path(test_file)
end