Class: Latest::Ruby
- Inherits:
-
Object
- Object
- Latest::Ruby
- Extended by:
- Forwardable
- Defined in:
- lib/latest_ruby/ruby.rb
Instance Method Summary collapse
- #filename(ext = nil) ⇒ Object
-
#initialize(ruby) ⇒ Ruby
constructor
A new instance of Ruby.
Constructor Details
#initialize(ruby) ⇒ Ruby
Returns a new instance of Ruby.
8 9 10 |
# File 'lib/latest_ruby/ruby.rb', line 8 def initialize(ruby) @ruby = ruby end |
Instance Method Details
#filename(ext = nil) ⇒ Object
12 13 14 15 |
# File 'lib/latest_ruby/ruby.rb', line 12 def filename(ext = nil) name = (ext ? @ruby.link(ext) : @ruby.link) name.split('/').last end |