lib/onstomp/interfaces/uri_configurable.rb in onstomp-1.0.0 vs lib/onstomp/interfaces/uri_configurable.rb in onstomp-1.0.1

- old
+ new

@@ -1,10 +1,10 @@ # -*- encoding: utf-8 -*- # Module for configurable attributes module OnStomp::Interfaces::UriConfigurable - # Extends +base+ with {OnStomp::Interfaces::UriConfigurable::ClassMethods} + # Extends `base` with {OnStomp::Interfaces::UriConfigurable::ClassMethods} def self.included(base) base.extend ClassMethods end private @@ -39,11 +39,11 @@ # Creates a group readable and writeable attributes that can be set # by a URI query parameter sharing the same name, a property of a URI or # a default value. The value of this attribute will be transformed by # invoking the given block, if one has been provided. If the attributes - # created by this method are assigned an +Array+, only the first element + # created by this method are assigned an `Array`, only the first element # will be used as their value. def attr_configurable_single *args, &block trans = attr_configurable_wrap lambda { |v| v.is_a?(Array) ? v.first : v }, block attr_configurable(*args, &trans) end @@ -61,10 +61,10 @@ # Creates a group readable and writeable attributes that can be set # by a URI query parameter sharing the same name, a property of a URI or # a default value. The value of this attribute will be transformed by # invoking the given block, if one has been provided. If the attributes - # created by this method are assigned a value that is not an +Array+, the + # created by this method are assigned a value that is not an `Array`, the # value will be wrapped in an array. def attr_configurable_arr *args, &block trans = attr_configurable_wrap lambda { |v| Array(v) }, block attr_configurable(*args, &trans) end