module DrawCloud
- Copyright
-
Copyright © 2012, SweetSpot Diabetes Care, Inc.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- Copyright
-
Copyright © 2012, SweetSpot Diabetes Care, Inc.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Constants
- VERSION
Public Class Methods
# File lib/draw_cloud.rb, line 19 def self.ref(object) if object.respond_to? :ref object.ref elsif object.is_a? Symbol resource_style(object) elsif object.respond_to? :each_pair object.each_with_object({}) {|(k,v),x| x[k] = DrawCloud.ref(v)} else object end end
# File lib/draw_cloud.rb, line 35 def self.resource_name(o) if o.respond_to? :resource_name o.resource_name else resource_style(o) end end
# File lib/draw_cloud.rb, line 31 def self.resource_style(str) str.to_s.camelize end