X7ROOT File Manager
Current Path:
/opt/alt/ruby34/share/ruby/prism
opt
/
alt
/
ruby34
/
share
/
ruby
/
prism
/
📁
..
📄
compiler.rb
(15.18 KB)
📄
desugar_compiler.rb
(9.87 KB)
📄
dispatcher.rb
(111.23 KB)
📄
dsl.rb
(56.4 KB)
📄
ffi.rb
(18.45 KB)
📄
inspect_visitor.rb
(124.43 KB)
📄
lex_compat.rb
(32.42 KB)
📄
mutation_compiler.rb
(21.08 KB)
📄
node.rb
(585.16 KB)
📄
node_ext.rb
(14.94 KB)
📄
pack.rb
(5.86 KB)
📁
parse_result
📄
parse_result.rb
(27.79 KB)
📄
pattern.rb
(8.14 KB)
📁
polyfill
📄
reflection.rb
(28.7 KB)
📄
relocation.rb
(15.1 KB)
📄
serialize.rb
(83.89 KB)
📄
string_query.rb
(755 B)
📁
translation
📄
translation.rb
(449 B)
📄
visitor.rb
(15.4 KB)
Editing: string_query.rb
# frozen_string_literal: true module Prism # Query methods that allow categorizing strings based on their context for # where they could be valid in a Ruby syntax tree. class StringQuery # The string that this query is wrapping. attr_reader :string # Initialize a new query with the given string. def initialize(string) @string = string end # Whether or not this string is a valid local variable name. def local? StringQuery.local?(string) end # Whether or not this string is a valid constant name. def constant? StringQuery.constant?(string) end # Whether or not this string is a valid method name. def method_name? StringQuery.method_name?(string) end end end
Upload File
Create Folder