Class: CapistranoChangelog::Release
- Inherits:
-
Object
- Object
- CapistranoChangelog::Release
show all
- Defined in:
- lib/changelog/release.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(tag) ⇒ Release
Returns a new instance of Release.
7
8
9
|
# File 'lib/changelog/release.rb', line 7
def initialize(tag)
@tag = tag
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/changelog/release.rb', line 15
def method_missing(meth, *args)
if tag.respond_to?(meth)
tag.send(meth, *args)
else
super
end
end
|
Instance Attribute Details
#tag ⇒ Object
Returns the value of attribute tag.
5
6
7
|
# File 'lib/changelog/release.rb', line 5
def tag
@tag
end
|
Instance Method Details
#<=>(other) ⇒ Object
11
12
13
|
# File 'lib/changelog/release.rb', line 11
def <=> (other)
self.date <=> other.date
end
|
#stories(history) ⇒ Object
#unreconized(history) ⇒ Object
#unreconized?(history) ⇒ Boolean
37
38
39
|
# File 'lib/changelog/release.rb', line 37
def unreconized?(history)
unreconized(history).size > 0
end
|