mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Terminfo.tigetstr should be able to receive tiparm in method chain
https://github.com/ruby/reline/commit/4a3e308163
This commit is contained in:
parent
5e09da2f7a
commit
60d1d6aa89
1 changed files with 5 additions and 1 deletions
|
@ -57,7 +57,11 @@ module Reline::Terminfo
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.tigetstr(capname)
|
def self.tigetstr(capname)
|
||||||
@tigetstr.(capname).to_s
|
result = @tigetstr.(capname).to_s
|
||||||
|
def result.tiparm(*args) # for method chain
|
||||||
|
Reline::Terminfo.tiparm(self, *args)
|
||||||
|
end
|
||||||
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.tiparm(str, *args)
|
def self.tiparm(str, *args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue