Sha256: 06a91ae0bd7f25b663a765fb3f953b742852c79bc0015375f6397e97a8f1660c

Contents?: true

Size: 324 Bytes

Versions: 1

Compression:

Stored size: 324 Bytes

Contents

module Superhosting
  module Helpers
    include Helper::Logger
    include Helper::File
    include Helper::Cmd
    include Helper::Config

    def instance_variables_to_hash(obj)
      obj.instance_variables.map do |name|
        [name.to_s[1..-1].to_sym, obj.instance_variable_get(name)]
      end.to_h
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
superhosting-0.0.2 lib/superhosting/helpers.rb