Module: Card::FileCardCreator::AbstractFileCard::RubyFile

Included in:
Card::FileCardCreator::AbstractFileCard
Defined in:
card/lib/card/tasks/card/file_card_creator/abstract_file_card/ruby_file.rb

Overview

Module that provides #create_ruby_file method for a classes that inherit from AbstractFileCard. The default location for the ruby file is set/self.

Instance Method Summary collapse

Instance Method Details

#create_ruby_fileObject



8
9
10
11
12
# File 'card/lib/card/tasks/card/file_card_creator/abstract_file_card/ruby_file.rb', line 8

def create_ruby_file
  write_to_mod(ruby_file_dir, ruby_file_name) do |f|
    f.puts ruby_file_content
  end
end