Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
roktas committed Jul 30, 2024
1 parent afffef2 commit 783bc5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ GEM
ast (~> 2.4.1)
racc
prism (0.30.0)
racc (1.8.0)
racc (1.8.1)
rack (3.1.7)
rainbow (3.1.1)
rake (13.2.1)
rbs (3.5.2)
logger
regexp_parser (2.9.2)
rexml (3.3.1)
rexml (3.3.2)
strscan
rubocop (1.65.0)
json (~> 2.3)
Expand Down Expand Up @@ -105,13 +105,13 @@ GEM
rubocop-rails
rubocop-rake (0.6.0)
rubocop (~> 1.0)
ruby-lsp (0.17.7)
ruby-lsp (0.17.9)
language_server-protocol (~> 3.17.0)
prism (>= 0.29.0, < 0.31)
rbs (>= 3, < 4)
sorbet-runtime (>= 0.5.10782)
ruby-progressbar (1.13.0)
sorbet-runtime (0.5.11481)
sorbet-runtime (0.5.11500)
strscan (3.1.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
Expand Down
5 changes: 5 additions & 0 deletions graphics/lib/sevgi/graphics/mixtures/inkscape.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ def InkscapeTemplateInfo(name:, desc: nil, author: nil, date: nil, keywords: nil
end
end

def Group(mod, *args, **kwargs, &block)
kwargs = kwargs.merge(id: F.demodulize(mod).to_sym) unless kwargs.key?(:id)
g(**kwargs) { Call(mod, *args, &block) }
end

def Layer(mod, *args, **kwargs, &block)
kwargs = kwargs.merge(id: F.demodulize(mod).to_sym) unless kwargs.key?(:id)
layer(**kwargs) { Call(mod, *args, &block) }
Expand Down

0 comments on commit 783bc5c

Please sign in to comment.