XML 66 R51.htm IDEA: XBRL DOCUMENT
v3.8.0.1

FAIR VALUE (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis - USD ($) $ in Thousands | Jan. 31, 2018 | Jan. 31, 2017
--- | --- | ---
FAIR VALUE (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Forward purchase contracts asset (4) | [1] | $ 72 |  | $ 163 |
Investment in cooperative (1) | [2] | 333 |  | 333 |
Total assets |  | 405 |  | 541 |
Commodity futures (5) |  | 87 | [3] | 45 | [4]
Forward purchase contracts liability (2) | [5] | 34 |  | 136 |
Total liabilities |  | 121 |  | 100 |
Fair Value, Inputs, Level 1 [Member] |  |  |  |  |
FAIR VALUE (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Forward purchase contracts asset (4) | [1] |  |  |  |
Investment in cooperative (1) | [2] |  |  |  |
Commodity futures (5) |  |  | [3] |  | [4]
Forward purchase contracts liability (2) | [5] |  |  |  |
Fair Value, Inputs, Level 2 [Member] |  |  |  |  |
FAIR VALUE (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Forward purchase contracts asset (4) | [1] | 72 |  | 163 |
Investment in cooperative (1) | [2] |  |  |  |
Total assets |  | 72 |  | 208 |
Commodity futures (5) |  | 87 | [3] | 45 | [4]
Forward purchase contracts liability (2) | [5] | 34 |  | 136 |
Total liabilities |  | 121 |  |  |
Fair Value, Inputs, Level 3 [Member] |  |  |  |  |
FAIR VALUE (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Forward purchase contracts asset (4) | [1] |  |  |  |
Investment in cooperative (1) | [2] | 333 |  | 333 |
Total assets |  | 333 |  | 333 |
Commodity futures (5) |  |  | [3] |  | [4]
Forward purchase contracts liability (2) | [5] |  |  |  |
[1] | The forward purchase contract asset is included in "Prepaid expenses and other" on the accompanying Consolidated Balance Sheets.
[2] | The investment in cooperative is included in "Other assets" on the accompanying Consolidated Balance Sheets.
[3] | The commodity futures liability is included in "Accrued expenses and other current liabilities" on the accompanying Consolidated Balance Sheets.
[4] | The commodity futures asset is included in "Prepaid expenses and other" on the accompanying Consolidated Balance Sheets.
[5] | The forward purchase contract liability is included in "Accrued expenses and other current liabilities" on the accompanying Consolidated Balance Sheets.

X
- References No definition available. + Details
Name: | rex_FAIRVALUEDetailsScheduleofFairValueAssetsandLiabilitiesMeasuredonRecurringBasisLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Forward Purchase Contract Liability at Fair Value + References No definition available. + Details
Name: | rex_ForwardPurchaseContractLiabilityFairValue
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_ForwardPurchaseContractsAsset
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of investment in cooperative as of the reporting date. + References No definition available. + Details
Name: | rex_InvestmentInCooperativeFairValueDisclosure
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=66048111&loc=d3e19207-110258 + Details
Name: | us-gaap_AssetsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The fair value as of the balance sheet date of firm holdings in all assets resulting from contracts that meet the criteria of being accounted for as derivative instruments. Their value is derived from the values of one or more underlying assets, reference rates, or indices of asset values. Includes both pledged (to counterparties as collateral for financing transactions) and unpledged holdings. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -Subparagraph c -URI http://asc.fasb.org/extlink&oid=84234895&loc=SL5624163-113959 + Details
Name: | us-gaap_FinancialInstrumentsOwnedDerivativesAndOtherContractualAgreementsAtFairValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19-26) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_Liabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |