Skip to content

Instantly share code, notes, and snippets.

@Dishwasha
Created March 10, 2010 14:17
Show Gist options
  • Save Dishwasha/327901 to your computer and use it in GitHub Desktop.
Save Dishwasha/327901 to your computer and use it in GitHub Desktop.
>> HashRowColumn.all
=> [#<HashRowColumn column: {}, row: "3", _id: 4b95d9ca24b0441937000001, column_ids: []>, #<HashRowColumn column: {}, row: nil, _id: 4b95de0324b0441be6000001, column_ids: []>, #<HashRowColumn column: {"2"=>"This", "3"=>"Test", "4"=>"Test", "5"=>"Me"}, row: "2", _id: 4b95d55a24b04415aa000001, column_ids: ["2", "3", "4", "5"]>, #<HashRowColumn column: {"2"=>"Blue"}, row: "1", _id: 4b95c91d24b0440ceb000001, column_ids: ["2"]>, #<HashRowColumn column: {"22"=>"You", "2"=>"Me Too!"}, row: "16", _id: 4b95c96224b0440ceb000002, column_ids: ["2"]>]
>> HashRowColumn["1"]["17"] = "My Test"
=> "My Test"
>> HashRowColumn.all
=> [#<HashRowColumn column: {}, row: "3", _id: 4b95d9ca24b0441937000001, column_ids: []>, #<HashRowColumn column: {}, row: nil, _id: 4b95de0324b0441be6000001, column_ids: []>, #<HashRowColumn column: {"2"=>"This", "3"=>"Test", "4"=>"Test", "5"=>"Me"}, row: "2", _id: 4b95d55a24b04415aa000001, column_ids: ["2", "3", "4", "5"]>, #<HashRowColumn column: {"17"=>"My Test", "2"=>"Blue"}, row: "1", _id: 4b95c91d24b0440ceb000001, column_ids: ["2", "17"]>, #<HashRowColumn column: {"22"=>"You", "2"=>"Me Too!"}, row: "16", _id: 4b95c96224b0440ceb000002, column_ids: ["2"]>]
>> HashRowColumn["2"]
=> #<HashRowColumn column: {"2"=>"This", "3"=>"Test", "4"=>"Test", "5"=>"Me"}, row: "2", _id: 4b95d55a24b04415aa000001, column_ids: ["2", "3", "4", "5"]>
>> HashRowColumn["1"]
=> #<HashRowColumn column: {"17"=>"My Test", "2"=>"Blue"}, row: "1", _id: 4b95c91d24b0440ceb000001, column_ids: ["2", "17"]>
>> quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment