Class: FeatureFile
- Inherits:
-
Object
- Object
- FeatureFile
- Defined in:
- lib/feature_file.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#link ⇒ Object
Returns the value of attribute link.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ FeatureFile
constructor
A new instance of FeatureFile.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ FeatureFile
Returns a new instance of FeatureFile.
5 6 7 8 9 |
# File 'lib/feature_file.rb', line 5 def initialize @title = nil @link = nil @content = nil end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
3 4 5 |
# File 'lib/feature_file.rb', line 3 def content @content end |
#link ⇒ Object
Returns the value of attribute link.
3 4 5 |
# File 'lib/feature_file.rb', line 3 def link @link end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/feature_file.rb', line 3 def title @title end |
Instance Method Details
#to_s ⇒ Object
11 12 13 14 15 16 |
# File 'lib/feature_file.rb', line 11 def to_s result = "Feature: " + title + "\n\n" result += "#{link}\n\n" result += content result end |