Exception: RubyDep::Travis::RubyVersion::Error::Unrecognized

Inherits:
RubyDep::Travis::RubyVersion::Error show all
Defined in:
lib/ruby_dep/travis/ruby_version.rb

Direct Known Subclasses

JRubyVersion

Defined Under Namespace

Classes: JRubyVersion

Instance Method Summary collapse

Constructor Details

#initialize(invalid_version_string) ⇒ Unrecognized

Returns a new instance of Unrecognized.



15
16
17
# File 'lib/ruby_dep/travis/ruby_version.rb', line 15

def initialize(invalid_version_string)
  @invalid_version_string = invalid_version_string
end

Instance Method Details

#messageObject



19
20
21
# File 'lib/ruby_dep/travis/ruby_version.rb', line 19

def message
  "Unrecognized Ruby version: #{@invalid_version_string.inspect}"
end