Skip to content

Commit

Permalink
Add Sass::Embedded.new for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Nov 30, 2023
1 parent 52dee6c commit 1e197d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sass/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
require_relative 'value'

module Sass
# The {Embedded} host for using dart-sass. Each instance creates its own
# The {Compiler} for using dart-sass. Each instance creates its own
# communication {Dispatcher} with a dedicated compiler process.
#
# @example
Expand Down
10 changes: 10 additions & 0 deletions lib/sass/embedded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,14 @@ def instance
end
end
# rubocop:enable Layout/LineLength

# The {Embedded} module.
module Embedded
module_function

# @deprecated Use {Compiler#new} instead.
def new
Compiler.new
end
end
end

0 comments on commit 1e197d8

Please sign in to comment.