Class: SchemaToScaffold::Clipboard
- Inherits:
-
Object
- Object
- SchemaToScaffold::Clipboard
- Defined in:
- lib/schema_to_scaffold/clipboard.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(output) ⇒ Clipboard
constructor
A new instance of Clipboard.
Constructor Details
#initialize(output) ⇒ Clipboard
Returns a new instance of Clipboard.
5 6 7 |
# File 'lib/schema_to_scaffold/clipboard.rb', line 5 def initialize(output) @output = output end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
3 4 5 |
# File 'lib/schema_to_scaffold/clipboard.rb', line 3 def output @output end |
Instance Method Details
#command ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/schema_to_scaffold/clipboard.rb', line 9 def command case platform when /darwin/i then darwin_command when /linux/i then linux_command when /mingw/i then win_command when /win/i then win_command end end |