Class: Mappum::Field

Inherits:
Struct show all
Defined in:
lib/mappum/map.rb

Direct Known Subclasses

Context

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



168
169
170
# File 'lib/mappum/map.rb', line 168

def block
  @block
end

#clazzObject

Returns the value of attribute clazz

Returns:

  • (Object)

    the current value of clazz



168
169
170
# File 'lib/mappum/map.rb', line 168

def clazz
  @clazz
end

#enum_typeObject

define enum_type separetly to exclude it from equals



170
171
172
# File 'lib/mappum/map.rb', line 170

def enum_type
  @enum_type
end

#funcObject

Returns the value of attribute func

Returns:

  • (Object)

    the current value of func



168
169
170
# File 'lib/mappum/map.rb', line 168

def func
  @func
end

#is_placeholderObject

Returns the value of attribute is_placeholder

Returns:

  • (Object)

    the current value of is_placeholder



168
169
170
# File 'lib/mappum/map.rb', line 168

def is_placeholder
  @is_placeholder
end

#is_rootObject

Returns the value of attribute is_root

Returns:

  • (Object)

    the current value of is_root



168
169
170
# File 'lib/mappum/map.rb', line 168

def is_root
  @is_root
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



168
169
170
# File 'lib/mappum/map.rb', line 168

def name
  @name
end

#parentObject

Returns the value of attribute parent

Returns:

  • (Object)

    the current value of parent



168
169
170
# File 'lib/mappum/map.rb', line 168

def parent
  @parent
end

#src_refObject

Returns the value of attribute src_ref

Returns:

  • (Object)

    the current value of src_ref



168
169
170
# File 'lib/mappum/map.rb', line 168

def src_ref
  @src_ref
end

Instance Method Details

#array?Boolean

Returns:

  • (Boolean)


171
172
173
# File 'lib/mappum/map.rb', line 171

def array?
  not enum_type.nil?
end

#placeholder?Boolean

Returns:

  • (Boolean)


174
175
176
# File 'lib/mappum/map.rb', line 174

def placeholder?
  is_placeholder
end