Class: LockDiff::Changelog
- Inherits:
-
Object
- Object
- LockDiff::Changelog
- Defined in:
- lib/lock_diff/changelog.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Changelog
constructor
A new instance of Changelog.
- #name ⇒ Object
Constructor Details
#initialize(url) ⇒ Changelog
7 8 9 |
# File 'lib/lock_diff/changelog.rb', line 7 def initialize(url) @url = url end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/lock_diff/changelog.rb', line 5 def url @url end |
Instance Method Details
#name ⇒ Object
11 12 13 |
# File 'lib/lock_diff/changelog.rb', line 11 def name File.basename(@url) end |