lib/dissociated_introspection/inspection.rb in dissociated_introspection-0.6.0 vs lib/dissociated_introspection/inspection.rb in dissociated_introspection-0.7.0
- old
+ new
@@ -48,11 +48,11 @@
type ? consts.select { |s, c| c.is_a?(type) } : consts
end
# @return [DissociatedIntrospection::RubyClass]
def parsed_source
- @parsed_source ||= RubyClass.new(source: file.read)
+ @parsed_source ||= RubyClass.new(source: file.read, parse_with_comments: true)
end
# @return [Module]
def sandbox_module
@sandbox_module ||= Module.new
@@ -90,6 +90,6 @@
@klass ||= EvalSandbox.new(file: file, module_namespace: sandbox_module).call
end
attr_reader :parent_class_replacement, :file
end
-end
\ No newline at end of file
+end