Class: Action

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, arg, precedence) ⇒ Action

Returns a new instance of Action.



6
7
8
# File 'lib/lokale/options.rb', line 6

def initialize(type, arg, precedence)
  @type = type; @arg = arg; @precedence = precedence
end

Instance Attribute Details

#argObject (readonly)

Returns the value of attribute arg.



5
6
7
# File 'lib/lokale/options.rb', line 5

def arg
  @arg
end

#precedenceObject (readonly)

Returns the value of attribute precedence.



5
6
7
# File 'lib/lokale/options.rb', line 5

def precedence
  @precedence
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/lokale/options.rb', line 5

def type
  @type
end

Class Method Details

.appendObject



16
17
18
# File 'lib/lokale/options.rb', line 16

def self.append
  Action.new(:append, nil, 60)
end

.copy_baseObject



13
14
15
# File 'lib/lokale/options.rb', line 13

def self.copy_base
  Action.new(:copy_base, nil, 50)
end

.summaryObject



10
11
12
# File 'lib/lokale/options.rb', line 10

def self.summary
  Action.new(:summary, nil, 10)
end