Class: JpStringsFinder::RubyFinder::RipperCustom

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src) ⇒ RipperCustom

Returns a new instance of RipperCustom.



8
9
10
11
# File 'lib/jp_strings_finder/ruby_finder.rb', line 8

def initialize(src)
  super(src)
  @strings = []
end

Instance Attribute Details

#stringsObject (readonly)

Returns the value of attribute strings.



6
7
8
# File 'lib/jp_strings_finder/ruby_finder.rb', line 6

def strings
  @strings
end

Instance Method Details

#on_tstring_content(str) ⇒ Object



13
14
15
# File 'lib/jp_strings_finder/ruby_finder.rb', line 13

def on_tstring_content(str)
  @strings << str
end