Class: Ynl::Types::NestedAttributes

Inherits:
Struct
  • Object
show all
Defined in:
lib/ynl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attribute_setObject

Returns the value of attribute attribute_set

Returns:

  • (Object)

    the current value of attribute_set



39
40
41
# File 'lib/ynl.rb', line 39

def attribute_set
  @attribute_set
end

Instance Method Details

#rbs_typeObject



47
48
49
# File 'lib/ynl.rb', line 47

def rbs_type
  'AttributeSets::' + attribute_set.name.as_class_name
end

#resolve(f) ⇒ Object



42
43
44
45
# File 'lib/ynl.rb', line 42

def resolve(f)
  self.attribute_set = attribute_set.resolve(f)
  self
end