Class: Jade::Type::Var
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
3 4 5 |
# File 'lib/jade/type/var.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
3 4 5 |
# File 'lib/jade/type/var.rb', line 3 def name @name end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 17 18 |
# File 'lib/jade/type/var.rb', line 14 def ==(other) return false unless other.is_a?(Var) id == other.id end |
#to_s ⇒ Object
6 7 8 |
# File 'lib/jade/type/var.rb', line 6 def to_s name || id end |
#unbound_vars ⇒ Object
10 11 12 |
# File 'lib/jade/type/var.rb', line 10 def unbound_vars [self] end |