Class: SocialStream::Release::Component::VersionFile
- Inherits:
-
Global::VersionFile
- Object
- Global::VersionFile
- SocialStream::Release::Component::VersionFile
- Defined in:
- lib/social_stream/release/component/version_file.rb
Constant Summary
Constants inherited from Global::VersionFile
Global::VersionFile::NUMBER_PATTERN, Global::VersionFile::VERSION_PATTERN
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Global::VersionFile
Instance Method Summary collapse
- #filename ⇒ Object
-
#initialize(name, target = nil) ⇒ VersionFile
constructor
A new instance of VersionFile.
Methods inherited from Global::VersionFile
#bump!, #new_number, #old_number
Constructor Details
#initialize(name, target = nil) ⇒ VersionFile
Returns a new instance of VersionFile.
7 8 9 10 |
# File 'lib/social_stream/release/component/version_file.rb', line 7 def initialize(name, target = nil) @name = name super(target) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/social_stream/release/component/version_file.rb', line 5 def name @name end |
Instance Method Details
#filename ⇒ Object
12 13 14 |
# File 'lib/social_stream/release/component/version_file.rb', line 12 def filename "#{ name }/lib/social_stream/#{ name }/version.rb" end |