module EacRubyUtils::Fs::Traversable

Constants

BOOLEAN_PROPS
PATH_PROPS
PROP_METHOD_PREFIX

Public Class Methods

prop_method_name(prop) click to toggle source
# File lib/eac_ruby_utils/fs/traversable.rb, line 13
def prop_method_name(prop)
  "#{PROP_METHOD_PREFIX}#{prop}"
end

Public Instance Methods

traverser_check_path(path) click to toggle source
# File lib/eac_ruby_utils/fs/traversable.rb, line 34
def traverser_check_path(path)
  traverser_new.check_path(path)
end
traverser_new() click to toggle source
# File lib/eac_ruby_utils/fs/traversable.rb, line 38
def traverser_new
  r = ::EacRubyUtils::Fs::Traverser.new
  (BOOLEAN_PROPS + PATH_PROPS).each do |prop|
    r.send("#{prop}=", method(::EacRubyUtils::Fs::Traversable.prop_method_name(prop)))
  end
  r
end