class Gippix::Base

Attributes

description[RW]
doc[RW]
file_name[RW]
name[RW]
points[RW]

Public Class Methods

new(file_name) click to toggle source
# File lib/gippix.rb, line 37
def initialize(file_name)
  @file_name = file_name
  @doc = Nokogiri::XML( File.read file_name )
  @points = []
end

Public Instance Methods

with(xpath) { |xpath| ... } click to toggle source
# File lib/gippix.rb, line 43
def with xpath, &blk
  yield @doc.xpath(xpath)
end