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

Inherits:
Struct
  • Object
show all
Defined in:
lib/alexandria/smart_library.rb,
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



282
283
284
# File 'lib/alexandria/smart_library.rb', line 282

def name
  @name
end

#procObject

Returns the value of attribute proc

Returns:

  • (Object)

    the current value of proc



282
283
284
# File 'lib/alexandria/smart_library.rb', line 282

def proc
  @proc
end

#symObject

Returns the value of attribute sym

Returns:

  • (Object)

    the current value of sym



282
283
284
# File 'lib/alexandria/smart_library.rb', line 282

def sym
  @sym
end

Instance Method Details

#<=>(other) ⇒ Object



284
285
286
# File 'lib/alexandria/smart_library.rb', line 284

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