Sha256: 7418dc32cd95addfca0dd4f8ecab47fc4ff0d05622797ebe67280091312ef80e
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
require 'sway/mashable' module Sway class Base include Sway::Mashable attr_reader :mash, :mashes def initialize(array_or_hash) case array_or_hash.class.to_s when 'Array' array = array_or_hash @mashes = create_mashes_from(array) when 'Hash' hash = array_or_hash @mash = create_mash_from(hash) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sway-0.0.1 | lib/sway/base.rb |