Class: RBelly::JS::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/rbelly/js/property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



4
5
6
# File 'lib/rbelly/js/property.rb', line 4

def attributes
  @attributes
end

#binderObject

Returns the value of attribute binder.



4
5
6
# File 'lib/rbelly/js/property.rb', line 4

def binder
  @binder
end

#functionObject

Returns the value of attribute function.



4
5
6
# File 'lib/rbelly/js/property.rb', line 4

def function
  @function
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/rbelly/js/property.rb', line 4

def name
  @name
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/rbelly/js/property.rb', line 4

def value
  @value
end