Class: HMap::Platform
- Inherits:
-
Object
- Object
- HMap::Platform
- Defined in:
- lib/hmap/xc/target/build_setting.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configuration, platform) ⇒ Platform
constructor
A new instance of Platform.
- #to_s ⇒ Object
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
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
7 8 9 |
# File 'lib/hmap/xc/target/build_setting.rb', line 7 def configuration @configuration end |
#platform ⇒ Object (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_s ⇒ Object
18 19 20 |
# File 'lib/hmap/xc/target/build_setting.rb', line 18 def to_s "#{configuration}-#{platform}" end |