Class: Ext::Code

Inherits:
Base
  • Object
show all
Defined in:
lib/ext/code.rb

Instance Method Summary collapse

Methods inherited from Base

#args, #camelize_keys, ext_patch, #fixed_values, #option, #options, to_json, #to_s

Constructor Details

#initialize(code) ⇒ Code

Returns a new instance of Code.



2
3
4
# File 'lib/ext/code.rb', line 2

def initialize(code)
  @code = code
end

Instance Method Details

#to_jsonObject



6
7
8
# File 'lib/ext/code.rb', line 6

def to_json
  @code.to_s
end