Class: Ynl::Types::Binary

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#display_hintObject

Returns the value of attribute display_hint

Returns:

  • (Object)

    the current value of display_hint



29
30
31
# File 'lib/ynl.rb', line 29

def display_hint
  @display_hint
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



29
30
31
# File 'lib/ynl.rb', line 29

def length
  @length
end

#structObject

Returns the value of attribute struct

Returns:

  • (Object)

    the current value of struct



29
30
31
# File 'lib/ynl.rb', line 29

def struct
  @struct
end

Instance Method Details

#rbs_typeObject



35
36
37
# File 'lib/ynl.rb', line 35

def rbs_type
  'untyped'
end

#resolve(f) ⇒ Object



30
31
32
33
# File 'lib/ynl.rb', line 30

def resolve(f)
  self.struct = struct.resolve(f) if self.struct
  self
end