Class: Sass::Repl
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Repl
constructor
A new instance of Repl.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Repl
Returns a new instance of Repl.
5 6 7 |
# File 'lib/sass/repl.rb', line 5 def initialize( = {}) @options = end |
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/sass/repl.rb', line 9 def run environment = Environment.new environment.set_var('important', Script::String.new('!important')) @line = 0 loop do @line += 1 unless text = Readline.readline('>> ') puts return end Readline::HISTORY << text parse_input(environment, text) end end |