Class: Concordion::StringWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/concordion/string_writer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/concordion/string_writer.rb', line 3

def data
  @data
end

Instance Method Details

#calculate_filename_and_overwrite(data, filename) ⇒ Object



4
5
6
7
# File 'lib/concordion/string_writer.rb', line 4

def calculate_filename_and_overwrite(data, filename)
  @data = data.to_s
  filename
end

#output_file_exists?(filename) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/concordion/string_writer.rb', line 9

def output_file_exists?(filename)
  true
end