Exception: PlatformMismatchError
- Defined in:
- lib/errors.rb
Instance Method Summary collapse
-
#initialize(platform) ⇒ PlatformMismatchError
constructor
A new instance of PlatformMismatchError.
- #to_s ⇒ Object
Constructor Details
#initialize(platform) ⇒ PlatformMismatchError
Returns a new instance of PlatformMismatchError.
74 75 76 |
# File 'lib/errors.rb', line 74 def initialize(platform) @platform = platform end |
Instance Method Details
#to_s ⇒ Object
78 79 80 81 |
# File 'lib/errors.rb', line 78 def to_s platforms = PLATFORMS.map(&:to_s).join(", ") "Platform '#{@platform}' doesn't match any of: #{platforms}" end |