Class: Regexp

Inherits:
Object show all
Defined in:
lib/fiveruns/json/add/core.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.fjson_create(object) ⇒ Object



120
121
122
# File 'lib/fiveruns/json/add/core.rb', line 120

def self.fjson_create(object)
  new(object['s'], object['o'])
end

Instance Method Details

#to_fjsonObject



124
125
126
127
128
129
130
# File 'lib/fiveruns/json/add/core.rb', line 124

def to_fjson(*)
  {
    'json_class' => self.class.name,
    'o' => options,
    's' => source,
  }.to_fjson
end