Class: CBS::ObjectBinding

Inherits:
Binding
  • Object
show all
Defined in:
lib/cbs.rb

Instance Attribute Summary

Attributes inherited from Binding

#code, #selectors

Instance Method Summary collapse

Methods inherited from Binding

#format, #initialize

Constructor Details

This class inherits a constructor from CBS::Binding

Instance Method Details

#format_with(selector) ⇒ Object



247
248
249
# File 'lib/cbs.rb', line 247

def format_with(selector)
  "  '#{selector.gsub("'", "\\'")}' : #{code}"
end