Class: Property

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, name, type, default_value) ⇒ Property

Returns a new instance of Property.



4
5
6
7
8
9
10
11
# File 'lib/ycn/property.rb', line 4

def initialize klass, name, type, default_value
  eval("extend #{camelize configatron.lang}Property")
  
  @klass = klass
  @name = name
  @type = type
  @default_value = default_value
end

Instance Attribute Details

#default_valueObject

Returns the value of attribute default_value.



2
3
4
# File 'lib/ycn/property.rb', line 2

def default_value
  @default_value
end

#klassObject

Returns the value of attribute klass.



2
3
4
# File 'lib/ycn/property.rb', line 2

def klass
  @klass
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/ycn/property.rb', line 2

def name
  @name
end

#typeObject

Returns the value of attribute type.



2
3
4
# File 'lib/ycn/property.rb', line 2

def type
  @type
end