Class: SonJay::ValueArray

Inherits:
Array
  • Object
show all
Includes:
ActsAsModel
Defined in:
lib/son_jay/value_array.rb

Instance Method Summary collapse

Methods included from ActsAsModel

included

Instance Method Details

#sonj_contentObject



5
6
7
# File 'lib/son_jay/value_array.rb', line 5

def sonj_content
  self
end

#to_json(options = ::JSON::State.new) ⇒ Object



9
10
11
12
# File 'lib/son_jay/value_array.rb', line 9

def to_json(options = ::JSON::State.new)
  options = ::JSON::State.new(options) unless options.kind_of?(::JSON::State)
  super options
end