Skip to content

Commit

Permalink
remove old Ruby shim
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-makarov committed Jul 19, 2020
1 parent 4b9a15e commit d298aec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/xcake/core_ext/class.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Xcake
module CoreExtensions
# @example Including in a class
# Class.send(:include, Xcake::CoreExtensions::ClassDescendants) # done with send because of old ruby versions
# include Xcake::CoreExtensions::ClassDescendants
#
module ClassDescendants
# Returns all descendants of a class
Expand Down
2 changes: 1 addition & 1 deletion lib/xcake/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Generator
include Dependency
include Plugin
include Visitor
Class.send(:include, CoreExtensions::ClassDescendants) # done with send because of old ruby versions
include CoreExtensions::ClassDescendants

attr_accessor :context

Expand Down
2 changes: 1 addition & 1 deletion spec/core_ext/class_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

class Parent
Class.send(:include, Xcake::CoreExtensions::ClassDescendants) # done with send because of old ruby versions
include Xcake::CoreExtensions::ClassDescendants
end

class Child < Parent
Expand Down

0 comments on commit d298aec

Please # to comment.