Module: Assertion::DSL::Attribute
- Included in:
- Guard
- Defined in:
- lib/assertion/dsl/attribute.rb
Overview
Allows adding aliases to ‘#object` method.
Instance Method Summary collapse
-
#attribute(name) ⇒ undefined
Adds alias to the [#object] method.
Instance Method Details
#attribute(name) ⇒ undefined
Adds alias to the [#object] method
23 24 25 26 |
# File 'lib/assertion/dsl/attribute.rb', line 23 def attribute(name) __check_attribute__(name) alias_method name, :object end |