Method: Bmg::Relation#with_type

Defined in:
lib/bmg/relation.rb

#with_type(type) ⇒ Object



24
25
26
27
28
# File 'lib/bmg/relation.rb', line 24

def with_type(type)
  dup.tap{|r|
    r.type = type
  }
end