Class: Anchor::Types::Reference

Inherits:
Data
  • Object
show all
Defined in:
lib/anchor/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



57
58
59
# File 'lib/anchor/types.rb', line 57

def name
  @name
end

Instance Method Details

#anchor_schema_nameObject



62
# File 'lib/anchor/types.rb', line 62

def anchor_schema_name = name

#|(other) ⇒ Object



64
65
66
# File 'lib/anchor/types.rb', line 64

def |(other)
  Anchor::Types::Union.new([self, other])
end