class CsProj::Msbuild::Project

Attributes

options[RW]

Public Class Methods

new(options) click to toggle source
# File lib/csproj/msbuild/project.rb, line 6
def initialize(options)
  @options = options
end

Public Instance Methods

android?() click to toggle source
# File lib/csproj/msbuild/project.rb, line 26
def android?
  is_platform? CsProj::Platform::ANDROID
end
ios?() click to toggle source
# File lib/csproj/msbuild/project.rb, line 18
def ios?
  is_platform? CsProj::Platform::IOS
end
is_platform?(platform) click to toggle source
# File lib/csproj/msbuild/project.rb, line 30
def is_platform?(platform)
  case platform
         when CsProj::Platform::IOS
      then project_name.downcase.include? "ios"
         when CsProj::Platform::OSX
      then project_name.downcase.include? "mac"
         when CsProj::Platform::ANDROID
      then project_name.downcase.include? "droid"
         else false
  end
end
osx?() click to toggle source
# File lib/csproj/msbuild/project.rb, line 22
def osx?
  is_platform? CsProj::Platform::OSX
end
project_name() click to toggle source
# File lib/csproj/msbuild/project.rb, line 10
def project_name
  @options[:project_name]
end
project_path() click to toggle source
# File lib/csproj/msbuild/project.rb, line 14
def project_path
  @options[:project_path]
end