Method: Steep::Project::SignatureFile#load!

Defined in:
lib/steep/project/file.rb

#load!Object



135
136
137
138
139
140
141
# File 'lib/steep/project/file.rb', line 135

def load!
  buffer = Ruby::Signature::Buffer.new(name: path, content: content)
  decls = Ruby::Signature::Parser.parse_signature(buffer)
  @status = DeclarationsStatus.new(declarations: decls)
rescue Ruby::Signature::Parser::SyntaxError, Ruby::Signature::Parser::SemanticsError => exn
  @status = ParseErrorStatus.new(error: exn)
end