Class: RGen::Fragment::ModelFragment::FragmentRef

Inherits:
Object
  • Object
show all
Defined in:
lib/rgen/fragment/model_fragment.rb

Overview

A FragmentRef serves as a single target object for elements which need to reference the fragment they are contained in. The FragmentRef references the fragment it is contained in. The FragmentRef is separate from the fragment itself to allow storing it in a marshal dump independently of the fragment.

Instance Attribute Summary collapse

Instance Attribute Details

#fragmentObject

Returns the value of attribute fragment.



32
33
34
# File 'lib/rgen/fragment/model_fragment.rb', line 32

def fragment
  @fragment
end