File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ - Add ` GettextPO::Message#sticky_flags ` ,
6+ ` GettextPO::Message#workflow_flags ` , and ` GettextPO::File#messages `
7+ methods.
58- Enable file each message method, message iterator each method flag
69 iterator each method, message each sticky flag method, and message
710 each workflow flag method to run without given block.
Original file line number Diff line number Diff line change @@ -98,6 +98,10 @@ def each_sticky_flag
9898 end
9999 end
100100
101+ def sticky_flags
102+ each_sticky_flag . to_a
103+ end
104+
101105 # call-seq:
102106 # each_workflow_flag { |flag| ... }
103107 # each_workflow_flag -> Enumerator
@@ -113,6 +117,10 @@ def each_workflow_flag
113117 end
114118 end
115119 end
120+
121+ def workflow_flags
122+ each_workflow_flag . to_a
123+ end
116124 end
117125
118126 class File
@@ -131,6 +139,10 @@ def each_message(domain = nil)
131139 end
132140 end
133141 end
142+
143+ def messages ( domain = nil )
144+ each_message ( domain ) . to_a
145+ end
134146 end
135147
136148 # This class doesn't provide the +new+ class method. See also
You can’t perform that action at this time.
0 commit comments