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.



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

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

Instance Attribute Details

#contentObject

Returns the value of attribute content.



101
102
103
# File 'lib/steep/project/file.rb', line 101

def content
  @content
end

#content_updated_atObject (readonly)

Returns the value of attribute content_updated_at.



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

def content_updated_at
  @content_updated_at
end

#pathObject (readonly)

Returns the value of attribute path.



100
101
102
# File 'lib/steep/project/file.rb', line 100

def path
  @path
end

Instance Method Details

#parseObject



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

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