Class: CRA_logic_deep::CountWord

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

Class Method Summary collapse

Class Method Details

.getData(firstParam, secondParam) ⇒ Object



16
17
18
# File 'lib/CRA_logic_deep.rb', line 16

def self.getData(firstParam,secondParam)  
      return firstParam.scan(/(?=#{secondParam})/).count           
end