Class: SolidRuby::Transformations::Transformation
- Inherits:
-
Object
- Object
- SolidRuby::Transformations::Transformation
- Defined in:
- lib/solidruby/transformations/transformation.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Transformation
constructor
A new instance of Transformation.
- #walk_tree ⇒ Object
Constructor Details
#initialize(*args) ⇒ Transformation
Returns a new instance of Transformation.
19 20 21 22 |
# File 'lib/solidruby/transformations/transformation.rb', line 19 def initialize(*args) @args = args.flatten @args = @args[0] if @args[0].is_a? Hash end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
18 19 20 |
# File 'lib/solidruby/transformations/transformation.rb', line 18 def args @args end |
Instance Method Details
#walk_tree ⇒ Object
24 25 26 |
# File 'lib/solidruby/transformations/transformation.rb', line 24 def walk_tree to_rubyscad.to_s + "\n" end |