class ActiveMocker::FilePathToRubyClass
Attributes
base_path[R]
class_path[R]
Public Class Methods
new(base_path:, class_path:)
click to toggle source
# File lib/active_mocker/file_path_to_ruby_class.rb, line 6 def initialize(base_path:, class_path:) @base_path = base_path @class_path = class_path end
Public Instance Methods
to_s()
click to toggle source
# File lib/active_mocker/file_path_to_ruby_class.rb, line 11 def to_s File.basename(class_path.gsub(base_path + "/", "").split("/").map(&:camelize).join("::"), ".rb") end