Ruby Modules, require, module_function, and Rails

app/
--controllers/
--some_data_plot_controller.rb

--lib/
--complicated_data/
--plot.rb
--models/--services/ # where all the service objects live
app/lib/complicated_data/another_file_with_a_method.rb
require 'complicated_data/another_file_with_a_method`

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abe Flansburg

Abe Flansburg

35 Followers

Devops / Software / Data Engineer / Follower of Jesus Christ