All notable changes to this project will be documented in this file.
- MethodInLiner will now recursively in-lines methods.
- Ability to Inline local methods with the exception of ones with arguments passed.
- Require Ruby core lib resources. (Forwardable, Pathname)
- Deal with change in how Ruby order's it's constants.
- RubyClass::Def methods return RubyCode object so that AST could be inspected
- Dropping support for Ruby version 2.1
DissociatedIntrospection::RubyClass#class_begin
added back to public API
DissociatedIntrospection::RubyClass#defined_nested_modules
and #defined_nested_classes returns an array ofRubyCode
. For any internally defined within the class it's self.
DissociatedIntrospection::RubyClass#class_defs
failed to parse a single class methods withclass >> self; end;
DissociatedIntrospection::RubyClass#class_defs
failed to parse class methods withclass >> self; end;
- Less strict parser version
- inspect_methods takes :instance_methods or :class_method/:methods to access #defs #class_defs
DissociatedIntrospection::RubyClass#class_defs
returns same api as #defsDissociatedIntrospection::RubyClass#class_method_calls
inspect method name and its arguments ie. attr_reader :name
DissociatedIntrospection::RubyClass#is_class?
changed to#class?
DissociatedIntrospection::RubyClass#has_parent_class?
changed to#parent_class?
DissociatedIntrospection::RubyCode#to_ruby_str
changed to#source
DissociatedIntrospection::RubyClass#defs
fixed parse issue when class has one method.
DissociatedIntrospection::Inspection#parsed_source
now returnsRubyClass
with comments
DissociatedIntrospection::RubyClass#defs
now returns associated comments
DissociatedIntrospection.listen_to_defined_class_methods=
In addition to ruby methods like attr_reader other DSL class methods can be recorded if specified.
RubyClass#module_nesting
could return modules that were nested inside of a class.
RubyClass#module_nesting
returns an array of symbols representing the module namespacing that the class is within.
- If a class was not found it could return all given code.
DissociatedIntrospection::RubyClass
now can take aDissociatedIntrospection::RubyCode
which is build with#build_from_ast
,#build_from_source
.DissociatedIntrospection::WrapInModules
given a instance ofDissociatedIntrospection::RubyCode
it will nest any depth of module namespacing.