Class: RLSL::Prism::TypeShapes::ArrayType

Inherits:
Struct
  • Object
show all
Defined in:
lib/rlsl/prism/type_inference/type_shapes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#element_typeObject

Returns the value of attribute element_type

Returns:

  • (Object)

    the current value of element_type



6
7
8
# File 'lib/rlsl/prism/type_inference/type_shapes.rb', line 6

def element_type
  @element_type
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/rlsl/prism/type_inference/type_shapes.rb', line 11

def to_s
  to_sym.to_s
end

#to_symObject



7
8
9
# File 'lib/rlsl/prism/type_inference/type_shapes.rb', line 7

def to_sym
  :"array_#{element_type}"
end