Class: Steep::Project::SignatureFile

Inherits:
Object
  • Object
show all
Defined in:
lib/steep/project/file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:) ⇒ SignatureFile

Returns a new instance of SignatureFile.



107
108
109
110
# File 'lib/steep/project/file.rb', line 107

def initialize(path:)
  @path = path
  self.content = ""
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



104
105
106
# File 'lib/steep/project/file.rb', line 104

def content
  @content
end

#content_updated_atObject (readonly)

Returns the value of attribute content_updated_at.



105
106
107
# File 'lib/steep/project/file.rb', line 105

def content_updated_at
  @content_updated_at
end

#pathObject (readonly)

Returns the value of attribute path.



103
104
105
# File 'lib/steep/project/file.rb', line 103

def path
  @path
end

Instance Method Details

#parseObject



112
113
114
# File 'lib/steep/project/file.rb', line 112

def parse
  Parser.parse_signature(content, name: path)
end