Class: RBI::Parser
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.parse_file(path) ⇒ Object
36 37 38 |
# File 'lib/rbi/parser.rb', line 36 def self.parse_file(path) Parser.new.parse_file(path) end |
.parse_string(string) ⇒ Object
31 32 33 |
# File 'lib/rbi/parser.rb', line 31 def self.parse_string(string) Parser.new.parse_string(string) end |
Instance Method Details
#parse_file(path) ⇒ Object
46 47 48 |
# File 'lib/rbi/parser.rb', line 46 def parse_file(path) parse(::File.read(path), file: path) end |
#parse_string(string) ⇒ Object
41 42 43 |
# File 'lib/rbi/parser.rb', line 41 def parse_string(string) parse(string, file: "-") end |