Class: EasyRspec::FileContents
- Inherits:
-
Object
- Object
- EasyRspec::FileContents
- Defined in:
- lib/easy_rspec/file_contents.rb
Instance Attribute Summary collapse
-
#class_methods ⇒ Object
Returns the value of attribute class_methods.
-
#instance_methods ⇒ Object
Returns the value of attribute instance_methods.
Instance Method Summary collapse
-
#initialize(file_path) ⇒ FileContents
constructor
A new instance of FileContents.
Constructor Details
#initialize(file_path) ⇒ FileContents
Returns a new instance of FileContents.
6 7 8 9 10 |
# File 'lib/easy_rspec/file_contents.rb', line 6 def initialize(file_path) self.instance_methods = [] self.class_methods = [] find_contents(file_path) end |
Instance Attribute Details
#class_methods ⇒ Object
Returns the value of attribute class_methods.
4 5 6 |
# File 'lib/easy_rspec/file_contents.rb', line 4 def class_methods @class_methods end |
#instance_methods ⇒ Object
Returns the value of attribute instance_methods.
4 5 6 |
# File 'lib/easy_rspec/file_contents.rb', line 4 def instance_methods @instance_methods end |