Class: Acorn::First

Inherits:
Object
  • Object
show all
Defined in:
lib/acorn/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir_name) ⇒ First

Returns a new instance of First.



4
5
6
7
# File 'lib/acorn/dsl.rb', line 4

def initialize dir_name
  self.data = Data.new
  self.data.dir_name = dir_name
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/acorn/dsl.rb', line 3

def data
  @data
end

Instance Method Details

#insert(seed_name) ⇒ Object



9
10
11
12
# File 'lib/acorn/dsl.rb', line 9

def insert seed_name
  self.data.seed_names << seed_name
  Second.new self.data
end

#Insert(seed_name) ⇒ Object



13
14
15
# File 'lib/acorn/dsl.rb', line 13

def Insert seed_name
  insert seed_name
end