Class: ClassyEmptyArray
- Inherits:
-
Array
- Object
- Array
- ClassyEmptyArray
- Defined in:
- lib/ruboss_on_ruby/active_foo.rb
Instance Method Summary collapse
-
#initialize(class_name) ⇒ ClassyEmptyArray
constructor
A new instance of ClassyEmptyArray.
-
#to_fxml(*args) ⇒ Object
You need the *args so that it doesn’t fail if there are :include or :methods params.
Constructor Details
#initialize(class_name) ⇒ ClassyEmptyArray
Returns a new instance of ClassyEmptyArray.
11 12 13 |
# File 'lib/ruboss_on_ruby/active_foo.rb', line 11 def initialize(class_name) @class_name = class_name end |
Instance Method Details
#to_fxml(*args) ⇒ Object
You need the *args so that it doesn’t fail if there are :include or :methods params
14 15 16 |
# File 'lib/ruboss_on_ruby/active_foo.rb', line 14 def to_fxml(*args) # You need the *args so that it doesn't fail if there are :include or :methods params empty? ? "<#{@class_name} type=\"array\"/>" : super.to_fxml end |