Class: Actions

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

Instance Method Summary collapse

Instance Method Details

#[](i) ⇒ Object



71
72
73
# File 'lib/startask.rb', line 71

def [](i)
  @a[i]
end

#import(a) ⇒ Object



61
62
63
64
65
66
67
68
69
# File 'lib/startask.rb', line 61

def import(a)

  @a = a.map do |x|
    x.is_a?(String) ? ActionItem.new(x) : Actions.new.import(x)
  end

  return self

end

#to_sObject



75
76
77
# File 'lib/startask.rb', line 75

def to_s()
  @a.each(&:to_s)
end