This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sublime, sublime_plugin | |
| class DrawLineCommand(sublime_plugin.EventListener): | |
| def on_query_completions(self, view, prefix, locations): | |
| if prefix in ('ll'): | |
| val = '-'*50 | |
| else: | |
| val = None | |
| return [(prefix, prefix, val)] if val else [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class BillingAddress | |
| def initialize(params) | |
| @params = params | |
| end | |
| def generate | |
| billing_address = { name: full_name, | |
| address1: @params[:billing_address_line_1], | |
| city: @params[:billing_city], |