lib/socialcast.rb in socialcast-1.0.0.beta1 vs lib/socialcast.rb in socialcast-1.0.0.beta3
- old
+ new
@@ -18,6 +18,9 @@
end
def credentials
raise 'Unknown Socialcast credentials. Run `socialcast authenticate` to initialize' unless File.exist?(credentials_file)
YAML.load_file(credentials_file)
end
+ def grab_value(entry)
+ entry.is_a?(Array) ? entry.first : entry
+ end
end