Class: Draught::Corner
- Inherits:
-
Object
- Object
- Draught::Corner
- Defined in:
- lib/draught/corner.rb
Defined Under Namespace
Classes: JoinAngles, Rounded
Instance Attribute Summary collapse
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
-
#radius ⇒ Object
readonly
Returns the value of attribute radius.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ Corner
constructor
A new instance of Corner.
- #join ⇒ Object
Constructor Details
#initialize(args) ⇒ Corner
Returns a new instance of Corner.
14 15 16 17 |
# File 'lib/draught/corner.rb', line 14 def initialize(args) @radius = args.fetch(:radius) @paths = args.fetch(:paths) end |
Instance Attribute Details
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
12 13 14 |
# File 'lib/draught/corner.rb', line 12 def paths @paths end |
#radius ⇒ Object (readonly)
Returns the value of attribute radius.
12 13 14 |
# File 'lib/draught/corner.rb', line 12 def radius @radius end |
Class Method Details
.join_rounded(args) ⇒ Object
8 9 10 |
# File 'lib/draught/corner.rb', line 8 def self.join_rounded(args) new(args).join end |