Class: Longjing::PDDL::Var
- Inherits:
-
Object
- Object
- Longjing::PDDL::Var
- Defined in:
- lib/longjing/pddl/var.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type = nil) ⇒ Var
constructor
A new instance of Var.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
4 5 6 |
# File 'lib/longjing/pddl/var.rb', line 4 def hash @hash end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/longjing/pddl/var.rb', line 4 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/longjing/pddl/var.rb', line 4 def type @type end |
Instance Method Details
#inspect ⇒ Object
15 16 17 |
# File 'lib/longjing/pddl/var.rb', line 15 def inspect "(var #{to_s})" end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/longjing/pddl/var.rb', line 11 def to_s "#{@name} - #{@type}" end |