Class: SchemaToScaffold::Clipboard

Inherits:
Object
  • Object
show all
Defined in:
lib/schema_to_scaffold/clipboard.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#outputObject (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

#commandObject



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