Class: Peruby::Dualvar

Inherits:
Data
  • Object
show all
Defined in:
lib/peruby/runtime/scalar.rb

Instance Attribute Summary collapse

Instance Attribute Details

#numObject (readonly)

Returns the value of attribute num

Returns:

  • (Object)

    the current value of num



26
27
28
# File 'lib/peruby/runtime/scalar.rb', line 26

def num
  @num
end

#strObject (readonly)

Returns the value of attribute str

Returns:

  • (Object)

    the current value of str



26
27
28
# File 'lib/peruby/runtime/scalar.rb', line 26

def str
  @str
end