module Lexically::ClassMethods

Public Instance Methods

lexically(&block) click to toggle source

Returns a refinement refines the class or the module itself.

The refinement creates its scope cannot be visible from the outside of the class or the module.

@return [Module]

# File lib/lexically.rb, line 44
def lexically(&block)
  klass = self
  Module.new {
    refine klass, &block
  }
end