Module: Open::NamedStream

Defined in:
lib/scout/open.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



12
13
14
# File 'lib/scout/open.rb', line 12

def filename
  @filename
end

Instance Method Details

#digest_strObject



14
15
16
17
18
19
20
# File 'lib/scout/open.rb', line 14

def digest_str
  if Path === filename && ! filename.located?
    filename
  else
    Misc.file_md5(filename)
  end
end