Method: Thor::Actions::CreateFile#render

Defined in:
lib/vendor/thor/lib/thor/actions/create_file.rb

#renderObject

Holds the content to be added to the file.



50
51
52
53
54
55
56
# File 'lib/vendor/thor/lib/thor/actions/create_file.rb', line 50

def render
  @render ||= if data.is_a?(Proc)
    data.call
  else
    data
  end
end