Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MakerHelper: class -> module #582

Merged
merged 1 commit into from
Apr 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lib/review/makerhelper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
require 'yaml'

module ReVIEW
class MakerHelper
module MakerHelper
# Return review/bin directory
def self.bindir
def bindir
Pathname.new("#{Pathname.new(__FILE__).realpath.dirname}/../../bin").realpath
end
module_function :bindir

# Copy image files under from_dir to to_dir recursively
# ==== Args
Expand All @@ -34,7 +35,7 @@ def self.bindir
# Image files are copied recursively, and each '.eps' file is converted into '.eps.png'
#

def self.copy_images_to_dir(from_dir, to_dir, options = {})
def copy_images_to_dir(from_dir, to_dir, options = {})
image_files = []

Dir.open(from_dir) do |dir|
Expand Down Expand Up @@ -64,5 +65,7 @@ def self.copy_images_to_dir(from_dir, to_dir, options = {})

image_files
end
module_function :copy_images_to_dir

end
end