module Mockingjay::Rules
These define basic rules for converting a deserialized value down to a generator
Public Class Methods
fixnum()
click to toggle source
# File lib/mockingjay/rules/base_rules.rb, line 6 def fixnum {'Generator.fixnum' => '(1..100)'} end
float()
click to toggle source
# File lib/mockingjay/rules/base_rules.rb, line 10 def float {'Generator.float' => '(1..100)'} end
string()
click to toggle source
# File lib/mockingjay/rules/base_rules.rb, line 14 def string {'Generator.string' => 'Lorem.word'} end
unknown(type)
click to toggle source
# File lib/mockingjay/rules/base_rules.rb, line 18 def unknown(type) {'Generator.unknown' => '#{type}'} end