Class: Segmentor::Source

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/segmentor/source.rb

Overview

Source runs the code and returns an array of ::Segmentor::Target you can dervie from this for different types of code sources (ie Ruby, JS, etc)

Direct Known Subclasses

Segmentor::Sources::RubySource

Instance Method Summary collapse

Instance Method Details

#executeObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/segmentor/source.rb', line 15

def execute
  raise NotImplementedError, 'execute must be implemented in a subclass'
end