Class: Core

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

Class Method Summary collapse

Class Method Details



15
16
17
18
# File 'lib/aml/core/method.rb', line 15

def self.copyright(index=0, a={})
	time = Time.new
	return "%p © #{time.year}"
end

.date(index = 0, a = {:format=>'%Y-%m-%d %H:%M:%S'}) ⇒ Object



5
6
7
8
# File 'lib/aml/core/method.rb', line 5

def self.date(index=0, a={:format=>'%Y-%m-%d %H:%M:%S'})
	time = Time.new
	return time.strftime(a[:format])
end

.ipsum(index = 0, a = {}) ⇒ Object



9
10
11
# File 'lib/aml/core/method.rb', line 9

def self.ipsum(index=0, a={})
	return "%p lorem ipsum sit amet dolor"
end

.loop(index = 0, a = {}) ⇒ Object



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

def self.loop(index=0, a={})
	return "loop"
end

.random(index = 0, a = {}) ⇒ Object



12
13
14
# File 'lib/aml/core/method.rb', line 12

def self.random(index=0, a={})
	return "random"
end