Class: Issuesrc::FileInterface

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

Overview

This class is here for documentation only. All classes in the Sourcers module that want to be considered issuers need to implement this interface.

Instance Method Summary collapse

Instance Method Details

#bodyIO

Returns The body of the file.

Returns:

  • (IO)

    The body of the file.



10
# File 'lib/issuesrc/file.rb', line 10

def body; end

#replace_at(pos, old_content_length, new_content) ⇒ Object

Replaces part of the body of the file, and saves it.

Parameters:

  • pos

    Position from the beginning of the body in which the new content starts.

  • old_content_length

    Length of previous content that should be replaced.

  • new_content

    A string that will be written in pos at the file.



19
# File 'lib/issuesrc/file.rb', line 19

def replace_at(pos, old_content_length, new_content); end

#typeObject

Returns The type of the file as a file extension.

Returns:

  • The type of the file as a file extension.



7
# File 'lib/issuesrc/file.rb', line 7

def type; end