Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
darkleaf committed Sep 13, 2019
1 parent 0e65c54 commit a90b736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/methodical/interface.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns methodical.interface
(:refer-clojure :exclude [isa? prefers prefer-method]))

(defmacro ^:private defonceinterface [name & body]
(let [class-name (clojure.string/replace (str *ns* "." name) #"\-" "_")
(defmacro ^:private defonceinterface [interface-name & body]
(let [class-name (clojure.string/replace (str *ns* "." interface-name) #"\-" "_")
exists (try
(Class/forName class-name)
true
Expand All @@ -12,7 +12,7 @@
`(do
(import ~(symbol class-name))
nil)
`(definterface ~name ~@body))))
`(definterface ~interface-name ~@body))))

(defonceinterface MethodCombination
(allowedQualifiers [])
Expand Down

0 comments on commit a90b736

Please sign in to comment.