Class: Duxml::TransformClass
- Inherits:
-
ChangeClass
- Object
- ChangeClass
- Duxml::TransformClass
- Defined in:
- lib/con_duxml/duxml_ext/transform_class.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#instructions ⇒ Object
readonly
Returns the value of attribute instructions.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#description ⇒ String
Verbal description of transform event.
-
#error? ⇒ false
Required to prevent grammar from attempting to validate transform.
-
#initialize(xform, src, output) ⇒ TransformClass
constructor
A new instance of TransformClass.
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
#input ⇒ Object (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 |
#instructions ⇒ Object (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 |
#output ⇒ Object (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
#description ⇒ String
Returns 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.
20 21 22 |
# File 'lib/con_duxml/duxml_ext/transform_class.rb', line 20 def error? false end |