Class: Alexandria::SmartLibrary::Rule::Operand

Inherits:
Struct
  • Object
show all
Defined in:
lib/alexandria/smart_library.rb,
lib/alexandria/smart_library.rb

Direct Known Subclasses

LeftOperand

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



266
267
268
# File 'lib/alexandria/smart_library.rb', line 266

def klass
  @klass
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



266
267
268
# File 'lib/alexandria/smart_library.rb', line 266

def name
  @name
end

Instance Method Details

#<=>(other) ⇒ Object



268
269
270
# File 'lib/alexandria/smart_library.rb', line 268

def <=>(other)
  name <=> other.name
end