Class: Alexandria::SmartLibrary::Rule::Operator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



318
319
320
# File 'lib/alexandria/smart_library.rb', line 318

def name
  @name
end

#procObject

Returns the value of attribute proc

Returns:

  • (Object)

    the current value of proc



318
319
320
# File 'lib/alexandria/smart_library.rb', line 318

def proc
  @proc
end

#symObject

Returns the value of attribute sym

Returns:

  • (Object)

    the current value of sym



318
319
320
# File 'lib/alexandria/smart_library.rb', line 318

def sym
  @sym
end

Instance Method Details

#<=>(x) ⇒ Object



319
320
321
# File 'lib/alexandria/smart_library.rb', line 319

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