Class: Railslog::Release
- Inherits:
-
Object
- Object
- Railslog::Release
- Defined in:
- lib/railslog.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
- #add_entry(entry) ⇒ Object
-
#initialize(release_title) ⇒ Release
constructor
A new instance of Release.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
49 50 51 |
# File 'lib/railslog.rb', line 49 def date @date end |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
49 50 51 |
# File 'lib/railslog.rb', line 49 def entries @entries end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
49 50 51 |
# File 'lib/railslog.rb', line 49 def title @title end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
49 50 51 |
# File 'lib/railslog.rb', line 49 def version @version end |
Class Method Details
.recognize?(line) ⇒ Boolean
51 52 53 |
# File 'lib/railslog.rb', line 51 def self.recognize?(line) line =~ /^\*\S/ end |
Instance Method Details
#add_entry(entry) ⇒ Object
61 62 63 64 |
# File 'lib/railslog.rb', line 61 def add_entry(entry) @entries ||= [] @entries << entry end |
#to_s ⇒ Object
66 67 68 |
# File 'lib/railslog.rb', line 66 def to_s "<#{self.class} version:#{@version} date:#{@date}>" end |