Sha256: e61ec72047cb25bc2802eb98dcc4939f952003b6e8a727f551773f3de1edb91c

Contents?: true

Size: 905 Bytes

Versions: 5

Compression:

Stored size: 905 Bytes

Contents

require 'parser/current'
require 'unparser'
require 'dissociated_introspection/version'
require 'dissociated_introspection/try'
require 'dissociated_introspection/eval_sandbox'
require 'dissociated_introspection/wrap_in_modules'
require 'dissociated_introspection/ruby_code'
require 'dissociated_introspection/ruby_class'
require 'dissociated_introspection/ruby_class/def'
require 'dissociated_introspection/inspection'

module DissociatedIntrospection
  LISTEN_TO_CLASS_METHODS = [
    :attr_reader,
    :attr_writer,
    :attr_accessor,
    :prepend,
    :include,
    :extend,
    :alias_attribute,
    :alias_method,
    :alias_method_chain
  ]

  class << self
    def listen_to_defined_class_methods=(*methods)
      listen_to_defined_class_methods.concat(methods)
    end

    def listen_to_defined_class_methods
      @listen_to_defined_class_methods ||= LISTEN_TO_CLASS_METHODS
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dissociated_introspection-0.8.0 lib/dissociated_introspection.rb
dissociated_introspection-0.7.1 lib/dissociated_introspection.rb
dissociated_introspection-0.7.0 lib/dissociated_introspection.rb
dissociated_introspection-0.6.0 lib/dissociated_introspection.rb
dissociated_introspection-0.5.0 lib/dissociated_introspection.rb