Class: Rbprolog::Var
- Inherits:
-
Object
- Object
- Rbprolog::Var
- Defined in:
- lib/rbprolog/var.rb
Instance Attribute Summary collapse
-
#sym ⇒ Object
Returns the value of attribute sym.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(sym) ⇒ Var
constructor
A new instance of Var.
- #to_s ⇒ Object
Constructor Details
#initialize(sym) ⇒ Var
Returns a new instance of Var.
5 6 7 |
# File 'lib/rbprolog/var.rb', line 5 def initialize(sym) @sym = sym end |
Instance Attribute Details
#sym ⇒ Object
Returns the value of attribute sym.
3 4 5 |
# File 'lib/rbprolog/var.rb', line 3 def sym @sym end |
Instance Method Details
#==(other) ⇒ Object
13 14 15 |
# File 'lib/rbprolog/var.rb', line 13 def ==(other) true end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/rbprolog/var.rb', line 9 def to_s @sym.to_s end |