Module: ViewData::PG::Controls::JSON
- Defined in:
 - lib/view_data/pg/controls/json.rb
 
Class Method Summary collapse
Class Method Details
.data ⇒ Object
      5 6 7 8 9 10 11 12 13 14  | 
    
      # File 'lib/view_data/pg/controls/json.rb', line 5 def self.data { 'someString' => 'some-string', 'someNumber' => 1, 'someList' => ['a', 'b', 'c'], 'someNestedObject' => { 'someNestedAttribute' => 'some-nested-value' } } end  | 
  
.text ⇒ Object
      16 17 18  | 
    
      # File 'lib/view_data/pg/controls/json.rb', line 16 def self.text ::JSON.generate(data) end  |