lib/onstomp/failover/failover_configurable.rb in onstomp-1.0.0 vs lib/onstomp/failover/failover_configurable.rb in onstomp-1.0.1
- old
+ new
@@ -1,11 +1,11 @@
# -*- encoding: utf-8 -*-
# Module for configurable attributes specific to
# {OnStomp::Failover::Client failover} clients.
module OnStomp::Failover::FailoverConfigurable
- # Includes {OnStomp::Interfaces::ClientConfigurable} into +base+ and
+ # Includes {OnStomp::Interfaces::ClientConfigurable} into `base` and
# extends {OnStomp::Failover::FailoverConfigurable::ClassMethods}
# @param [Module] base
def self.included(base)
base.__send__ :include, OnStomp::Interfaces::ClientConfigurable
base.extend ClassMethods
@@ -21,11 +21,11 @@
attr_configurable_single(*args, &trans)
end
# Creates readable and writeable attributes that are automatically
# converted into boolean values. Assigning the attributes any of
- # +true+, +'true'+, +'1'+ or +1+ will set the attribute to +true+, all
- # other values with be treated as +false+. This method will also alias
+ # `true`, +'true'+, +'1'+ or +1+ will set the attribute to `true`, all
+ # other values with be treated as `false`. This method will also alias
# the reader methods with +attr_name?+
def attr_configurable_bool *args, &block
trans = attr_configurable_wrap lambda { |v|
[true, 'true', '1', 1].include?(v) }, block
attr_configurable_single(*args, &trans)