Sha256: eaf31fd15c65687dfe7c1fb6a716f899c064e6453054b34272cf63b35d9d0b26
Contents?: true
Size: 475 Bytes
Versions: 2
Compression:
Stored size: 475 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom')) class Fathom::Fact < Node attr_reader :value def initialize(opts={}) symbolize_keys!(opts) @value = opts[:value] @value ||= opts[:values] super(opts) end alias :rand :value undef_method :values undef_method :distribution end if __FILE__ == $0 include Fathom # TODO: Is there anything you want to do to run this file on its own? # Fact.new end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fathom-0.3.2 | lib/fathom/node/fact.rb |
fathom-0.3.1 | lib/fathom/node/fact.rb |