I believe that you have a problem with the way you indicate your path. As far as I can tell, Less is looking for an array of String objects, not Path obejcts.
Use the following:
parser = Less::Parser.new paths: [Rails.root.join('public', 'bootstraps', 'twitter-bootstrap-857b8fb', 'less').to_s] tree = parser.parse("@import 'bootstrap.less'") tree.to_css
rudolph9
source share