Class: Rake::Delphi::GitChangelog
- Defined in:
- lib/rake/common/git.rb
Instance Attribute Summary collapse
-
#changelog ⇒ Object
readonly
Returns the value of attribute changelog.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
-
#processed ⇒ Object
readonly
Returns the value of attribute processed.
Instance Method Summary collapse
- #changelog_string ⇒ Object
-
#initialize(task, opts) {|_self| ... } ⇒ GitChangelog
constructor
A new instance of GitChangelog.
- #processed_string ⇒ Object
Methods inherited from BasicTask
Constructor Details
#initialize(task, opts) {|_self| ... } ⇒ GitChangelog
Returns a new instance of GitChangelog.
34 35 36 37 38 39 40 41 |
# File 'lib/rake/common/git.rb', line 34 def initialize(task, opts) super(task) @opts = {:filter => '.', :format => '%B'} @opts.merge!(opts) if opts.kind_of?(Hash) @changelog = @processed = [] get_changelog yield self if block_given? end |
Instance Attribute Details
#changelog ⇒ Object (readonly)
Returns the value of attribute changelog.
32 33 34 |
# File 'lib/rake/common/git.rb', line 32 def changelog @changelog end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
32 33 34 |
# File 'lib/rake/common/git.rb', line 32 def opts @opts end |
#processed ⇒ Object (readonly)
Returns the value of attribute processed.
32 33 34 |
# File 'lib/rake/common/git.rb', line 32 def processed @processed end |
Instance Method Details
#changelog_string ⇒ Object
47 48 49 |
# File 'lib/rake/common/git.rb', line 47 def changelog_string @changelog.join("\n") end |
#processed_string ⇒ Object
43 44 45 |
# File 'lib/rake/common/git.rb', line 43 def processed_string @processed.join("\n") end |