phlexite/sig/phlexite.rbs
2024-09-08 20:58:18 -04:00

25 lines
573 B
Text

module Phlexite
VERSION: String
# See the writing guide of rbs: https://github.com/ruby/rbs#guides
class Error < StandardError
end
class Router
def initialize: (String, Site) -> void
def page: (String, untyped) -> void
def group: (String) { (Router) -> void } -> void
private
def full_out_path: (String) -> String
end
class Site < Router
def initialize: () { (Site) -> void } -> void
def build_dir: () -> String
def build_dir=: (String) -> void
def base_url: () -> String
def base_url=: (String) -> void
end
end