Skip to content

Commit

Permalink
Separate RBS files to _internal directory to avoid exposing RBS
Browse files Browse the repository at this point in the history
  • Loading branch information
pocke committed Mar 3, 2022
1 parent 60ebf51 commit bb3299e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
10 changes: 10 additions & 0 deletions sig/lib/_internal/rails.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class ::Hash[unchecked out K, unchecked out V]
def with_indifferent_access: () -> instance
def deep_merge!: (instance other) -> self
end

class ::Object
def presence: () -> String?
def blank?: () -> bool
def present?: () -> bool
end
31 changes: 11 additions & 20 deletions sig/lib/_rails.rbs
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
class ::Hash[unchecked out K, unchecked out V]
def with_indifferent_access: () -> instance
def deep_merge!: (instance other) -> self
end

class ::Object
def presence: () -> String?
def blank?: () -> bool
def present?: () -> bool
end

interface _ActionControllerBase
def render: (*untyped args) { () -> untyped } -> untyped
end
module MetaTags
interface _ActionControllerBase
def render: (*untyped args) { () -> untyped } -> untyped
end

interface _ActionViewBase
def tag: (String name, ?Hash[String | Symbol, untyped] options, ?bool open) -> void
interface _ActionViewBase
def tag: (String name, ?Hash[String | Symbol, untyped] options, ?bool open) -> void

def content_tag: (String name, String content, ?Hash[String | Symbol, untyped] options, ?bool open) -> void
def content_tag: (String name, String content, ?Hash[String | Symbol, untyped] options, ?bool open) -> void

def safe_join: (Array[String], String) -> String
def safe_join: (Array[String], String) -> String

def truncate: (String text, ?Hash[Symbol, untyped] options) -> String
def truncate: (String text, ?Hash[Symbol, untyped] options) -> String

def strip_tags: (String html) -> String
def strip_tags: (String html) -> String
end
end

0 comments on commit bb3299e

Please sign in to comment.