Class: VCardio::Builder::PropertyBuilder
- Inherits:
-
Object
- Object
- VCardio::Builder::PropertyBuilder
- Defined in:
- lib/vcardio/builder.rb
Instance Method Summary collapse
- #build_parameters(hash) ⇒ Object
-
#initialize(name, args) ⇒ PropertyBuilder
constructor
A new instance of PropertyBuilder.
- #method_missing(method_name, *args) ⇒ Object
- #to_property ⇒ Object
Constructor Details
#initialize(name, args) ⇒ PropertyBuilder
Returns a new instance of PropertyBuilder.
31 32 33 34 35 |
# File 'lib/vcardio/builder.rb', line 31 def initialize(name, args) @args = args @group = nil @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
56 57 58 59 60 61 |
# File 'lib/vcardio/builder.rb', line 56 def method_missing(method_name, *args) @group = @name @name = method_name @args = args self end |