Class: Texter::Preprocessor

Inherits:
Object
  • Object
show all
Includes:
CallableClass
Defined in:
app/lib/texter/preprocessor.rb

Direct Known Subclasses

ArtTypographPreprocessor, CleanPreprocessor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ Preprocessor

Returns a new instance of Preprocessor.

Parameters:

  • body (String)


8
9
10
# File 'app/lib/texter/preprocessor.rb', line 8

def initialize(body)
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'app/lib/texter/preprocessor.rb', line 5

def body
  @body
end

Instance Method Details

#callString, NilClass

Returns:

  • (String, NilClass)

Raises:

  • (NotImplementedError)


13
14
15
# File 'app/lib/texter/preprocessor.rb', line 13

def call
  raise NotImplementedError
end