Method: FAP::Relation#initialize

Defined in:
lib/fap/relation.rb

#initialize(name, opt = {}) ⇒ Relation



6
7
8
9
10
11
12
# File 'lib/fap/relation.rb', line 6

def initialize name, opt={}
  @name  = name
  @type  = opt[:type]
  @xpath = opt[:xpath] || name
  @klass = opt[:class] || nil
  @from  = opt[:from]  || nil
end