class

Tokei::Api::Views::Contexts::ResultContext

Inherits Tokei::Api::Views::Contexts::BaseContext < Reference < Object

Context for results page

Constructors

new(analysis : Tokei::Api::Models::Analysis, result_json : JSON::Any, error_message = nil)
Source

Instance methods

analysis
Source
badge_markdown(type : BadgeType, label : String) : String

Generate markdown for badge

Source
badge_url(type : BadgeType) : String

Generate badge URL for the specified type

Source
deepwiki_url(owner : String, repo : String) : String

Get DeepWiki server URL for GitHub repositories

Source
gitdiagram_url(owner : String, repo : String) : String

Get GitDiagram service URL for GitHub repositories

Source
github_info

Extract GitHub owner and repo name

Source
github_next_visualization_url(owner : String, repo : String) : String

Get GitHub Next repo-visualization service URL This service is part of GitHub Next's Repo Visualization project which provides a visual representation of repository structure and relationships. For more information, visit: https://githubnext.com/projects/repo-visualization/

Source
github_repo?

Check if the repository URL is from GitHub

Source
result_json
Source
result_json=(result_json : JSON::Any)
Source
to_s(__io__ : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source

Nested types