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

Inherits:
Struct
  • Object
show all
Defined in:
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



303
304
305
# File 'lib/alexandria/smart_library.rb', line 303

def klass
  @klass
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



303
304
305
# File 'lib/alexandria/smart_library.rb', line 303

def name
  @name
end

Instance Method Details

#<=>(x) ⇒ Object



304
305
306
# File 'lib/alexandria/smart_library.rb', line 304

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