Class: QtyLit

Inherits:
Struct
  • Object
show all
Defined in:
lib/oddb2xml/parslet_compositions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#qty ⇒ Object

Returns the value of attribute qty

Returns:

  • (Object) —

    the current value of qty



95
96
97
# File 'lib/oddb2xml/parslet_compositions.rb', line 95

def qty
  @qty
end

Instance Method Details

#eval ⇒ Object



96
# File 'lib/oddb2xml/parslet_compositions.rb', line 96

def eval; qty.to_i; end