Module: CubaApi::WriteAspect::ClassMethods
- Defined in:
- lib/cuba_api/write_aspect.rb
Instance Method Summary collapse
Instance Method Details
#append_aspect(arg) ⇒ Object
27 28 29 30 |
# File 'lib/cuba_api/write_aspect.rb', line 27 def append_aspect( arg ) aspects << arg warn "[CubaAPI] Appended aspect #{arg}" end |
#aspects ⇒ Object
37 38 39 |
# File 'lib/cuba_api/write_aspect.rb', line 37 def aspects self[ :aspects ] ||= [] end |
#prepend_aspect(arg) ⇒ Object
32 33 34 35 |
# File 'lib/cuba_api/write_aspect.rb', line 32 def prepend_aspect( arg ) aspects.insert( 0, arg ) warn "[CubaAPI] Prepended aspect #{arg}" end |