class Graphlyte::Fragment

Attributes

fragment[R]

Public Class Methods

new(fragment_name, model_name=nil, **hargs) click to toggle source
Calls superclass method Graphlyte::Fieldset::new
# File lib/graphlyte/fragment.rb, line 7
def initialize(fragment_name, model_name=nil, **hargs)
  @fragment = fragment_name
  super(model_name, **hargs)
end

Public Instance Methods

to_s(indent=0) click to toggle source
# File lib/graphlyte/fragment.rb, line 12
def to_s(indent=0)
  actual_indent = ("\s" * indent) * 2
  "#{actual_indent}...#{fragment}#{actual_indent}"
end