Class: EasyRspec::FileContents

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_methodsObject

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_methodsObject

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