lib/remarkable/dsl.rb in remarkable-3.0.0 vs lib/remarkable/dsl.rb in remarkable-3.0.1
- old
+ new
@@ -8,23 +8,22 @@
module DSL
ATTR_READERS = [ :matcher_arguments, :matcher_optionals, :matcher_single_assertions,
:matcher_collection_assertions, :before_assert_callbacks, :after_initialize_callbacks
] unless self.const_defined?(:ATTR_READERS)
- def self.extended(base)
- # Load modules
+ def self.extended(base) #:nodoc:
base.extend Assertions
base.send :include, Callbacks
base.send :include, Matches
base.send :include, Optionals
- # Set the default value for matcher_arguments
+ # Initialize matcher_arguments hash with names as an empty array
base.instance_variable_set('@matcher_arguments', { :names => [] })
end
# Make Remarkable::Base DSL inheritable.
#
- def inherited(base)
+ def inherited(base) #:nodoc:
base.class_eval do
class << self
attr_reader *ATTR_READERS
end
end