Skip to content

Commit 06e3764

Browse files
committed
.
1 parent 4f4322c commit 06e3764

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

graphics/lib/sevgi/graphics.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ def SVG(document = :default, canvas = Undefined, **, &block)
2323

2424
extend self
2525
end
26+
27+
SVG = Graphics
2628
end

graphics/lib/sevgi/graphics/mixtures/call.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Sevgi
44
module Graphics
5-
module SVGM
5+
module Module
66
def method_added(method)
77
_callables << method if public_method_defined?(method)
88
end
@@ -44,7 +44,7 @@ def self.callables(mod)
4444
module Mixtures
4545
module Call
4646
def Call(mod, ...)
47-
SVGM.call(mod, self, ...)
47+
Graphics::Module.call(mod, self, ...)
4848
end
4949

5050
private
@@ -58,7 +58,7 @@ def CallWithin(mod, container, element, *args, **kwargs, &block)
5858
mod._befores.each { Within(self, &it) } if mod.respond_to?(:_befores) && mod._befores
5959

6060
public_send(container, **kwargs) do
61-
SVGM.callables(mod).each do |method|
61+
Graphics::Module.callables(mod).each do |method|
6262
public_send(element) do
6363
Within(self, method.name, self, &block)
6464

toplevel/lib/sevgi/toplevel/graphics.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,5 @@ def Mixin(mod, document = Graphics::Document::Base, &block)
2424
document.mixture(mod)
2525
document.mixture(::Module.new(&block)) if block
2626
end
27-
28-
promote Graphics::SVGM
2927
end
3028
end

0 commit comments

Comments
 (0)