Class: Duxml::TransformClass

Inherits:
ChangeClass
  • Object
show all
Defined in:
lib/con_duxml/duxml_ext/transform_class.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xform, src, output) ⇒ TransformClass

Returns a new instance of TransformClass.



6
7
8
9
10
# File 'lib/con_duxml/duxml_ext/transform_class.rb', line 6

def initialize(xform, src, output)
  @instructions = xform
  @input = src
  @output = output
end

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



12
13
14
# File 'lib/con_duxml/duxml_ext/transform_class.rb', line 12

def input
  @input
end

#instructionsObject (readonly)

Returns the value of attribute instructions.



12
13
14
# File 'lib/con_duxml/duxml_ext/transform_class.rb', line 12

def instructions
  @instructions
end

#outputObject (readonly)

Returns the value of attribute output.



12
13
14
# File 'lib/con_duxml/duxml_ext/transform_class.rb', line 12

def output
  @output
end

Instance Method Details

#descriptionString

Returns verbal description of transform event.

Returns:

  • (String)

    verbal description of transform event



15
16
17
# File 'lib/con_duxml/duxml_ext/transform_class.rb', line 15

def description
  "#{output.description} created from #{input.description} by #{instructions.description}"
end

#error?false

Returns required to prevent grammar from attempting to validate transform.

Returns:

  • (false)

    required to prevent grammar from attempting to validate transform



20
21
22
# File 'lib/con_duxml/duxml_ext/transform_class.rb', line 20

def error?
  false
end