Class: HMap::Platform

Inherits:
Object
  • Object
show all
Defined in:
lib/hmap/xc/target/build_setting.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration, platform) ⇒ Platform

Returns a new instance of Platform.



13
14
15
16
# File 'lib/hmap/xc/target/build_setting.rb', line 13

def initialize(configuration, platform)
  @configuration = configuration
  @platform = platform
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



7
8
9
# File 'lib/hmap/xc/target/build_setting.rb', line 7

def configuration
  @configuration
end

#platformObject (readonly)

Returns the value of attribute platform.



7
8
9
# File 'lib/hmap/xc/target/build_setting.rb', line 7

def platform
  @platform
end

Class Method Details

.new_from_platforms(configuration, platforms) ⇒ Object



9
10
11
# File 'lib/hmap/xc/target/build_setting.rb', line 9

def self.new_from_platforms(configuration, platforms)
  Utils.effective_platforms_names(platforms).map { |pl| new(configuration, pl) }
end

Instance Method Details

#to_sObject



18
19
20
# File 'lib/hmap/xc/target/build_setting.rb', line 18

def to_s
  "#{configuration}-#{platform}"
end