Class YARD::CodeObjects::ExtraFileObject
In: lib/yard/code_objects/extra_file_object.rb
Parent: Object

An ExtraFileObject represents an extra documentation file (README or other file). It is not strictly a CodeObject (does not inherit from `Base`) although it implements `path`, `name` and `type`, and therefore should be structurally compatible with most CodeObject interfaces.

Methods

==   attributes   contents   contents=   eql?   equal?   hash   inspect   locale=   new   title   to_s   type  

External Aliases

name -> path

Attributes

attributes  [W] 
filename  [RW] 
locale  [R]  @since 0.8.3
name  [RW] 

Public Class methods

Creates a new extra file object. @param [String] filename the location on disk of the file @param [String] contents the file contents. If not set, the contents

  will be read from disk using the +filename+.

Public Instance methods

eql?(other)

Alias for #==

equal?(other)

Alias for #==

@param [String] locale the locale name to be translated. @return [void] @since 0.8.3

to_s()

Alias for inspect

[Validate]