Skip to content

Commit

Permalink
Merge pull request #237 from pocke/Fix_RBS_files_to_avoid_to_expose_R…
Browse files Browse the repository at this point in the history
…ails_signature

Separate RBS files to _internal directory to avoid exposing RBS
  • Loading branch information
kpumuk authored Mar 3, 2022
2 parents 60ebf51 + bb3299e commit 7c40235
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 7c40235

Please sign in to comment.