Module: ActiveFacts::CQL::ValueTypes::MaybeUnit2
- Defined in:
- lib/activefacts/cql/parser/ValueTypes.rb
Instance Method Summary collapse
Instance Method Details
#inverse ⇒ Object
2170 2171 2172 2173 2174 |
# File 'lib/activefacts/cql/parser/ValueTypes.rb', line 2170 def inverse a = value a[1] = -a[1] a end |
#value ⇒ Object
2167 2168 2169 |
# File 'lib/activefacts/cql/parser/ValueTypes.rb', line 2167 def value [unit_name.text_value, pow.text_value.empty? ? 1 : Integer(pow.text_value[1..-1])] end |