Class: SvnTransform::Transform::Noop

Inherits:
Object
  • Object
show all
Defined in:
lib/svn-transform/transform/noop.rb

Overview

A Transform class that does nothing. Useful for classes to inherit from that don’t need any special initialize logic, and as an ultra-simple example.

Instance Method Summary collapse

Constructor Details

#initialize(file, *args) ⇒ Noop

Initialize Noop Transform.

Parameters

file<SvnTransform::File>

File at a given revision

args<Array>

Splat of other args, all ignored



12
13
14
15
# File 'lib/svn-transform/transform/noop.rb', line 12

def initialize(file, *args)
  @file = file
  @args = args
end

Instance Method Details

#runObject

Run the transform. In this case it does nothing. In actual transforms, it would alter the @file (#body, #basename, and/or #properties) in some way, probably only if a condition met.

Returns

False

indicating that nothing was done.



23
24
25
# File 'lib/svn-transform/transform/noop.rb', line 23

def run
  return false
end