Module: Kward::NativeShell::HistoryCommands
- Included in:
- Runtime
- Defined in:
- lib/kward/shell/native_history.rb
Instance Method Summary collapse
Instance Method Details
#history ⇒ Object
163 164 165 166 |
# File 'lib/kward/shell/native_history.rb', line 163 def history raise ExecutionError, "fc: native history is standalone-only; hosted input owns its history" if @hosted @history ||= History.new(@variables, directory: @directory) end |
#with_history_entry(text) ⇒ Object
168 169 170 171 |
# File 'lib/kward/shell/native_history.rb', line 168 def with_history_entry(text) return yield if @hosted history.with_entry(text) { yield } end |