Module: Rserve::WithAttributes
- Defined in:
- lib/rserve/withattributes.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/rserve/withattributes.rb', line 3 def attributes @attributes end |
Instance Method Details
#has_attribute?(v) ⇒ Boolean
4 5 6 |
# File 'lib/rserve/withattributes.rb', line 4 def has_attribute?(v) !@attributes.nil? and !attributes[v].nil? end |