Class: Oso::Polar::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/oso/polar/variable.rb

Overview

Polar variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Variable

Returns a new instance of Variable.

Parameters:

  • name (String)

10
11
12
# File 'lib/oso/polar/variable.rb', line 10

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.


7
8
9
# File 'lib/oso/polar/variable.rb', line 7

def name
  @name
end

Instance Method Details

#to_sString

Returns:

  • (String)

15
16
17
# File 'lib/oso/polar/variable.rb', line 15

def to_s
  name
end