1
0
Fork 0
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:
aycabta 2021-05-19 17:57:30 +09:00
parent 5e09da2f7a
commit 60d1d6aa89

View file

@ -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)