Class: Methodd

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, parameters, content) ⇒ Methodd

Returns a new instance of Methodd.



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

def initialize name, type, parameters, content
  eval("extend #{camelize configatron.lang}Method")
  
  @name = name
  @type = type
  @parameters = parameters || []
  @content = content
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



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

def content
  @content
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#parametersObject

Returns the value of attribute parameters.



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

def parameters
  @parameters
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end