Module: AdLint::Cc1::Bindable
Instance Attribute Summary collapse
-
#binding ⇒ Object
Returns the value of attribute binding.
Instance Method Summary collapse
Instance Attribute Details
#binding ⇒ Object
Returns the value of attribute binding.
43 44 45 |
# File 'lib/adlint/cc1/object.rb', line 43 def binding @binding end |
Instance Method Details
#be_alias_to(mem) ⇒ Object
54 55 56 57 58 59 60 61 |
# File 'lib/adlint/cc1/object.rb', line 54 def be_alias_to(mem) case mem when Memory Binding.create_alias(self, mem) else raise TypeError, "an object cannot be an alias to other objects." end end |