Class: RailsClafer::SubClafer
- Inherits:
-
Object
- Object
- RailsClafer::SubClafer
- Defined in:
- lib/rails_clafer/sub_clafer.rb
Instance Attribute Summary collapse
-
#card ⇒ Object
Returns the value of attribute card.
-
#clafer ⇒ Object
Returns the value of attribute clafer.
-
#gcard ⇒ Object
Returns the value of attribute gcard.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(clafer, card) ⇒ SubClafer
constructor
A new instance of SubClafer.
- #method_missing(name, *args) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/rails_clafer/sub_clafer.rb', line 16 def method_missing(name, *args) if @clafer.respond_to?(name) @clafer.send(name, *args) else super end end |
Instance Attribute Details
#card ⇒ Object
Returns the value of attribute card.
8 9 10 |
# File 'lib/rails_clafer/sub_clafer.rb', line 8 def card @card end |
#clafer ⇒ Object
Returns the value of attribute clafer.
8 9 10 |
# File 'lib/rails_clafer/sub_clafer.rb', line 8 def clafer @clafer end |
#gcard ⇒ Object
Returns the value of attribute gcard.
8 9 10 |
# File 'lib/rails_clafer/sub_clafer.rb', line 8 def gcard @gcard end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/rails_clafer/sub_clafer.rb', line 8 def name @name end |
Class Method Details
.from_assoc(assoc, clafer) ⇒ Object
4 5 6 |
# File 'lib/rails_clafer/sub_clafer.rb', line 4 def from_assoc(assoc, clafer) new clafer, assoc.dst_card end |
Instance Method Details
#children ⇒ Object
24 25 26 |
# File 'lib/rails_clafer/sub_clafer.rb', line 24 def children @clafer.children end |