Class: FeatureFile

Inherits:
Object
  • Object
show all
Defined in:
lib/feature_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFeatureFile

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

#contentObject

Returns the value of attribute content.



3
4
5
# File 'lib/feature_file.rb', line 3

def content
  @content
end

Returns the value of attribute link.



3
4
5
# File 'lib/feature_file.rb', line 3

def link
  @link
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/feature_file.rb', line 3

def title
  @title
end

Instance Method Details

#to_sObject



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