Sha256: 57e6d5776a6e64f8a049d8b958b0c63e6ced2658fc01eeed28c14e24d6ae28e4

Contents?: true

Size: 1.74 KB

Versions: 6

Compression:

Stored size: 1.74 KB

Contents

obj = Object.new
class << obj
  # @appmap
  def object_sclass_func
  end
end

class Main
  class << self
    # @appmap
    def main_sclass_func_1
    end
  end
end

class Main2
  class << self
    # @appmap
    def main_sclass_func_1
    end

    # @appmap
    def main_sclass_func_2
    end
  end
end

puts DATA.read
__END__
{
  "explicit": [
    {
      "name": "main_sclass_func_1",
      "location": "$FIXTURE_DIR/sclass_static_function.rb:11",
      "type": "function",
      "class_name": "Main",
      "static": true
    },
    {
      "name": "main_sclass_func_1",
      "location": "$FIXTURE_DIR/sclass_static_function.rb:19",
      "type": "function",
      "class_name": "Main2",
      "static": true
    },
    {
      "name": "main_sclass_func_2",
      "location": "$FIXTURE_DIR/sclass_static_function.rb:23",
      "type": "function",
      "class_name": "Main2",
      "static": true
    }
  ],
  "implicit": [
    {
      "name": "Main",
      "location": "$FIXTURE_DIR/sclass_static_function.rb:8",
      "type": "class",
      "children": [
        {
          "name": "main_sclass_func_1",
          "location": "$FIXTURE_DIR/sclass_static_function.rb:11",
          "type": "function",
          "static": true
        }
      ]
    },
    {
      "name": "Main2",
      "location": "$FIXTURE_DIR/sclass_static_function.rb:16",
      "type": "class",
      "children": [
        {
          "name": "main_sclass_func_1",
          "location": "$FIXTURE_DIR/sclass_static_function.rb:19",
          "type": "function",
          "static": true
        },
        {
          "name": "main_sclass_func_2",
          "location": "$FIXTURE_DIR/sclass_static_function.rb:23",
          "type": "function",
          "static": true
        }
      ]
    }
  ]
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
appmap-0.23.0 test/fixtures/parse_file/sclass_static_function.rb
appmap-0.22.0 test/fixtures/parse_file/sclass_static_function.rb
appmap-0.21.0 test/fixtures/parse_file/sclass_static_function.rb
appmap-0.20.0 test/fixtures/parse_file/sclass_static_function.rb
appmap-0.19.0 test/fixtures/parse_file/sclass_static_function.rb
appmap-0.18.1 test/fixtures/parse_file/sclass_static_function.rb