Class: Action
- Inherits:
-
Object
- Object
- Action
- Defined in:
- lib/lokale/options.rb
Instance Attribute Summary collapse
-
#arg ⇒ Object
readonly
Returns the value of attribute arg.
-
#precedence ⇒ Object
readonly
Returns the value of attribute precedence.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type, arg, precedence) ⇒ Action
constructor
A new instance of Action.
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
#arg ⇒ Object (readonly)
Returns the value of attribute arg.
5 6 7 |
# File 'lib/lokale/options.rb', line 5 def arg @arg end |
#precedence ⇒ Object (readonly)
Returns the value of attribute precedence.
5 6 7 |
# File 'lib/lokale/options.rb', line 5 def precedence @precedence end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/lokale/options.rb', line 5 def type @type end |
Class Method Details
.append ⇒ Object
16 17 18 |
# File 'lib/lokale/options.rb', line 16 def self.append Action.new(:append, nil, 60) end |
.copy_base ⇒ Object
13 14 15 |
# File 'lib/lokale/options.rb', line 13 def self.copy_base Action.new(:copy_base, nil, 50) end |
.summary ⇒ Object
10 11 12 |
# File 'lib/lokale/options.rb', line 10 def self.summary Action.new(:summary, nil, 10) end |