Class: Ext::Code
Instance Method Summary collapse
-
#initialize(code) ⇒ Code
constructor
A new instance of Code.
- #to_json ⇒ Object
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_json ⇒ Object
6 7 8 |
# File 'lib/ext/code.rb', line 6 def to_json @code.to_s end |