Class: JpStringsFinder::ERBFinder

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src) ⇒ ERBFinder

Returns a new instance of ERBFinder.



5
6
7
# File 'lib/jp_strings_finder/erb_finder.rb', line 5

def initialize(src)
  @src = src
end

Instance Attribute Details

#srcObject (readonly)

Returns the value of attribute src.



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

def src
  @src
end

Instance Method Details

#findObject

Very very rough implementation for the moment…



10
11
12
# File 'lib/jp_strings_finder/erb_finder.rb', line 10

def find
  src.split("\n")
end