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

Remove #path method from Object #2

Merged
merged 1 commit into from
May 16, 2013
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: 2 additions & 7 deletions lib/gedcom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,10 @@
#objects to_gedcom() method. This can occur at any level, from Transmission downward.
#

def path(s,fs='/')
last_fs = s.rindex(fs)
last_fs ? s[0..last_fs] : ""
%w(gedcom parser chart).each do |dir|
$: << File.join(File.dirname(File.expand_path(__FILE__)), dir)
end

$: << "#{path(__FILE__)}gedcom"
$: << "#{path(__FILE__)}parser"
$: << "#{path(__FILE__)}chart"

require 'gedcom_parser.rb'
#require 'chart.rb'

Expand Down