Sha256: 5a99fac30758e3f2c1c9547c6291a2e5889c3857b8da7b4c833b49594af6db38
Contents?: true
Size: 396 Bytes
Versions: 5
Compression:
Stored size: 396 Bytes
Contents
module Vendorificator class Overlay attr_reader :path, :name, :segments def initialize(options = {}) @name = strip_leading_slash(options[:name]) @path = options[:path] ? strip_leading_slash(options[:path]) : @name @segments = [] end private def strip_leading_slash(string) (result = string.gsub(/\A\//, '')) != '' ? result : nil end end end
Version data entries
5 entries across 5 versions & 1 rubygems