Module: RKit::Decoration::Base
- Included in:
- Collection, Object
- Defined in:
- lib/r_kit/decoration/base.rb
Instance Method Summary collapse
- #decorate(*args) ⇒ Object
- #decorated? ⇒ Boolean
- #initialize(object, view_context: nil) ⇒ Object
- #raw ⇒ Object
- #view ⇒ Object
Instance Method Details
#decorate(*args) ⇒ Object
12 13 14 |
# File 'lib/r_kit/decoration/base.rb', line 12 def decorate *args self end |
#decorated? ⇒ Boolean
16 |
# File 'lib/r_kit/decoration/base.rb', line 16 def decorated?() true end |
#initialize(object, view_context: nil) ⇒ Object
3 4 5 6 |
# File 'lib/r_kit/decoration/base.rb', line 3 def initialize object, view_context: nil @view_context = view_context super object end |
#raw ⇒ Object
18 19 20 |
# File 'lib/r_kit/decoration/base.rb', line 18 def raw __getobj__ end |
#view ⇒ Object
27 28 29 |
# File 'lib/r_kit/decoration/base.rb', line 27 def view @view_context ||= view_context end |