Class: RBelly::JS::Property
- Inherits:
-
Object
- Object
- RBelly::JS::Property
- Defined in:
- lib/rbelly/js/property.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#binder ⇒ Object
Returns the value of attribute binder.
-
#function ⇒ Object
Returns the value of attribute function.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, binder = nil, function = nil, attributes = []) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(name, value, binder = nil, function = nil, attributes = []) ⇒ Property
Returns a new instance of Property.
5 6 7 8 9 10 11 |
# File 'lib/rbelly/js/property.rb', line 5 def initialize(name, value, binder = nil, function = nil, attributes = []) @name = name @value = value @binder = binder @function = function @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/rbelly/js/property.rb', line 4 def attributes @attributes end |
#binder ⇒ Object
Returns the value of attribute binder.
4 5 6 |
# File 'lib/rbelly/js/property.rb', line 4 def binder @binder end |
#function ⇒ Object
Returns the value of attribute function.
4 5 6 |
# File 'lib/rbelly/js/property.rb', line 4 def function @function end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/rbelly/js/property.rb', line 4 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/rbelly/js/property.rb', line 4 def value @value end |