Sha256: a964d23f3f189b0fcc6f0052c09878d6af0865b54f3624f4158107069796e810
Contents?: true
Size: 483 Bytes
Versions: 4
Compression:
Stored size: 483 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom')) class Fathom::Fact < Fathom::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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fathom-0.3.7 | lib/fathom/node/fact.rb |
fathom-0.3.6 | lib/fathom/node/fact.rb |
fathom-0.3.4 | lib/fathom/node/fact.rb |
fathom-0.3.3 | lib/fathom/node/fact.rb |